fix: fix the error

pull/1885/head
luhaoling 2 years ago
parent af85f4ea46
commit dacaa47af3

@ -49,9 +49,6 @@ func RunWsAndServer(rpcPort, wsPort, prometheusPort int) error {
if err != nil {
netDone <- err
}
if err == nil {
fmt.Println("review SIGNAL but err is nil")
}
}()
return hubServer.LongConnServer.Run(netDone)
}

@ -145,6 +145,7 @@ func (m *MsgTransfer) Start(prometheusPort int) error {
m.cancel()
m.historyCH.historyConsumerGroup.Close()
m.historyMongoCH.historyConsumerGroup.Close()
fmt.Println("SIGTERM SIGTERM received")
return errors.New("SIGTERM received, shutting down")
case <-netDone:

Loading…
Cancel
Save