mirror of
https://github.com/TeamPiped/instances-api.git
synced 2024-12-06 19:16:17 +01:00
Remove listening on message as Gofiber has its own
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user