Remove listening on message as Gofiber has its own
This commit is contained in:
parent
4ba1d2dfb4
commit
e8d2b2b267
8
main.go
8
main.go
|
@ -238,7 +238,7 @@ func monitorInstances() {
|
||||||
|
|
||||||
lines := strings.Split(buf.String(), "\n")
|
lines := strings.Split(buf.String(), "\n")
|
||||||
|
|
||||||
instances := []Instance{}
|
var instances []Instance
|
||||||
|
|
||||||
wg := sync.WaitGroup{}
|
wg := sync.WaitGroup{}
|
||||||
|
|
||||||
|
@ -288,6 +288,8 @@ func main() {
|
||||||
return c.JSON(monitored_instances)
|
return c.JSON(monitored_instances)
|
||||||
})
|
})
|
||||||
|
|
||||||
fmt.Println("Listening on http://localhost:3000")
|
err := app.Listen(":3000")
|
||||||
app.Listen(":3000")
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue