mirror of
https://github.com/TeamPiped/instances-api.git
synced 2024-08-14 23:57:19 +00:00
Remove listening on message as Gofiber has its own
This commit is contained in:
parent
4ba1d2dfb4
commit
e8d2b2b267
1 changed files with 5 additions and 3 deletions
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…
Add table
Add a link
Reference in a new issue