fix: msg gateway start output err info

Signed-off-by: Gordon <1432970085@qq.com>
This commit is contained in:
Gordon 2023-07-20 20:55:30 +08:00
parent a99b6a1700
commit 5cc7483a4f

View File

@ -39,7 +39,11 @@ func RunWsAndServer(rpcPort, wsPort, prometheusPort int) error {
return err
}
hubServer := NewServer(rpcPort, longServer)
go hubServer.Start()
hubServer.LongConnServer.Run()
return nil
go func() {
err := hubServer.Start()
if err != nil {
panic(err.Error())
}
}()
return hubServer.LongConnServer.Run()
}