fix: import the enough param

pull/1960/head
luhaoling 2 years ago
parent a70467dd96
commit d72a8b76b6

@ -122,7 +122,7 @@ func InitMsgTool(config *config.GlobalConfig) (*MsgTool, error) {
ctxTx,
)
msgRpcClient := rpcclient.NewMessageRpcClient(discov, config)
msgNotificationSender := notification.NewMsgNotificationSender(rpcclient.WithRpcClient(&msgRpcClient))
msgNotificationSender := notification.NewMsgNotificationSender(config, rpcclient.WithRpcClient(&msgRpcClient))
msgTool := NewMsgTool(msgDatabase, userDatabase, groupDatabase, conversationDatabase, msgNotificationSender, config)
return msgTool, nil
}

Loading…
Cancel
Save