Merge remote-tracking branch 'origin/errcode' into errcode

This commit is contained in:
withchao 2023-05-19 10:49:15 +08:00
commit 8e41e7cbbd

View File

@ -24,7 +24,7 @@ type conversationServer struct {
groupRpcClient *rpcclient.GroupClient groupRpcClient *rpcclient.GroupClient
conversationDatabase controller.ConversationDatabase conversationDatabase controller.ConversationDatabase
conversationNotificationSender *notification.ConversationNotificationSender conversationNotificationSender *notification.ConversationNotificationSender
msgRpcClient rpcclient.MsgClient msgRpcClient *rpcclient.MsgClient
} }
func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error { func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error {
@ -43,6 +43,7 @@ func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) e
pbConversation.RegisterConversationServer(server, &conversationServer{ pbConversation.RegisterConversationServer(server, &conversationServer{
conversationNotificationSender: notification.NewConversationNotificationSender(client), conversationNotificationSender: notification.NewConversationNotificationSender(client),
groupRpcClient: rpcclient.NewGroupClient(client), groupRpcClient: rpcclient.NewGroupClient(client),
msgRpcClient: rpcclient.NewMsgClient(client),
conversationDatabase: controller.NewConversationDatabase(conversationDB, cache.NewConversationRedis(rdb, cache.GetDefaultOpt(), conversationDB), tx.NewGorm(db)), conversationDatabase: controller.NewConversationDatabase(conversationDB, cache.NewConversationRedis(rdb, cache.GetDefaultOpt(), conversationDB), tx.NewGorm(db)),
}) })
return nil return nil