mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
fix: fix the param pass error
This commit is contained in:
parent
70c9653642
commit
d63da9b7fd
@ -17,8 +17,6 @@ package push
|
||||
import (
|
||||
"context"
|
||||
"github.com/openimsdk/open-im-server/v3/pkg/common/config"
|
||||
|
||||
"github.com/OpenIMSDK/tools/log"
|
||||
)
|
||||
|
||||
type Consumer struct {
|
||||
@ -37,9 +35,5 @@ func NewConsumer(config *config.GlobalConfig, pusher *Pusher) (*Consumer, error)
|
||||
}
|
||||
|
||||
func (c *Consumer) Start() {
|
||||
onError := func(ctx context.Context, err error, errInfo string) {
|
||||
log.ZWarn(ctx, errInfo, err)
|
||||
}
|
||||
go c.pushCh.pushConsumerGroup.RegisterHandleAndConsumer(context.Background(), &c.pushCh, onError)
|
||||
|
||||
go c.pushCh.pushConsumerGroup.RegisterHandleAndConsumer(context.Background(), &c.pushCh)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user