From d72a8b76b66fcf2033607a2f050aba463d712dfb Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Mon, 26 Feb 2024 16:52:28 +0800 Subject: [PATCH] fix: import the enough param --- internal/tools/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tools/msg.go b/internal/tools/msg.go index 72a97df47..a61bda2c5 100644 --- a/internal/tools/msg.go +++ b/internal/tools/msg.go @@ -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 }