test-errcode
wangchuxiao 2 years ago
parent 71fd442c44
commit 01f773c0f8

@ -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,7 +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), 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

Loading…
Cancel
Save