Update init.go

This commit is contained in:
OpenIM-Gordon 2024-02-05 10:29:19 +08:00 committed by GitHub
parent 964fad777a
commit 025f9b5205
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,7 @@ import (
"syscall"
"time"
"net/http"
"sync"
"github.com/OpenIMSDK/tools/errs"
@ -119,7 +120,7 @@ func (m *MsgTransfer) Start(prometheusPort int) error {
go func() {
defer wg.Done()
m.m.historyCH.historyConsumerGroup.RegisterHandleAndConsumer(ctx, m.historyCH)
m.historyCH.historyConsumerGroup.RegisterHandleAndConsumer(ctx, m.historyCH)
}()
wg.Add(1)