+2
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user