mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-20 09:56:49 +02:00
src/main.go: switch go routine/main thread order. run spawnTcpServer() in go routine and run event loop in main thread.
This commit is contained in:
parent
6907b3ce75
commit
d4cb1a92f9
2 changed files with 6 additions and 6 deletions
|
|
@ -52,5 +52,5 @@ func spawnTcpServer(addr string) {
|
|||
}
|
||||
|
||||
logger.Info("TCP Server started", "addr", addr)
|
||||
server.Listen()
|
||||
go server.Listen()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue