1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-16 04:44:55 +02:00

internal/server/server.go: in Start() no need to spawn server.Listen() in a go routine as that function is already non-blocking.

This commit is contained in:
Henrik Hautakoski 2022-11-23 17:22:44 +01:00
parent 8feca959d4
commit 72bdde0457
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

View file

@ -58,7 +58,7 @@ func Start(addr string) error {
err := server.Connect()
if err == nil {
go server.Listen()
err = server.Listen()
}
return err
}