Remove listening on message as Gofiber has its own

This commit is contained in:
Kavin 2023-07-26 12:22:46 +01:00
parent 4ba1d2dfb4
commit e8d2b2b267
No known key found for this signature in database
GPG key ID: 6E4598CA5C92C41F

View file

@ -238,7 +238,7 @@ func monitorInstances() {
lines := strings.Split(buf.String(), "\n")
instances := []Instance{}
var instances []Instance
wg := sync.WaitGroup{}
@ -288,6 +288,8 @@ func main() {
return c.JSON(monitored_instances)
})
fmt.Println("Listening on http://localhost:3000")
app.Listen(":3000")
err := app.Listen(":3000")
if err != nil {
panic(err)
}
}