mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
fix: fix the error
This commit is contained in:
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…
x
Reference in New Issue
Block a user