mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +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 {
|
if err != nil {
|
||||||
netDone <- err
|
netDone <- err
|
||||||
}
|
}
|
||||||
if err == nil {
|
|
||||||
fmt.Println("review SIGNAL but err is nil")
|
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
return hubServer.LongConnServer.Run(netDone)
|
return hubServer.LongConnServer.Run(netDone)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,6 +145,7 @@ func (m *MsgTransfer) Start(prometheusPort int) error {
|
|||||||
m.cancel()
|
m.cancel()
|
||||||
m.historyCH.historyConsumerGroup.Close()
|
m.historyCH.historyConsumerGroup.Close()
|
||||||
m.historyMongoCH.historyConsumerGroup.Close()
|
m.historyMongoCH.historyConsumerGroup.Close()
|
||||||
|
fmt.Println("SIGTERM SIGTERM received")
|
||||||
return errors.New("SIGTERM received, shutting down")
|
return errors.New("SIGTERM received, shutting down")
|
||||||
|
|
||||||
case <-netDone:
|
case <-netDone:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user