chore(example): fix listener usage in app example (#224)

This commit is contained in:
mv-kan 2022-10-05 09:36:06 +02:00 committed by GitHub
parent b5da6ec29b
commit 01021e71a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,5 +93,5 @@ func main() {
lis := fmt.Sprintf("127.0.0.1:%s", port)
logrus.Infof("listening on http://%s/", lis)
logrus.Fatal(http.ListenAndServe("127.0.0.1:"+port, nil))
logrus.Fatal(http.ListenAndServe(lis, nil))
}