fix: fix the tranfer exit error

This commit is contained in:
luhaoling 2024-02-18 19:02:44 +08:00
parent 3d9700be29
commit af85f4ea46

View File

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