add port to config
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-07 15:11:19 +07:00
parent 92634ce744
commit 11d3adf8db
2 changed files with 4 additions and 3 deletions
+2 -3
View File
@@ -92,9 +92,8 @@ func run() {
_, _ = fmt.Fprintf(w, `{"result":"ok"}`)
})
port := ":10002"
log.Println("Server is start up! port", port)
log.Fatal(http.ListenAndServe(port, nil))
log.Println("Server is start up! port", cfg.Port)
log.Fatal(http.ListenAndServe(cfg.Port, nil))
}()
for update := range updates {