mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
init
This commit is contained in:
parent
71fd442c44
commit
01f773c0f8
@ -24,7 +24,7 @@ type conversationServer struct {
|
||||
groupRpcClient *rpcclient.GroupClient
|
||||
conversationDatabase controller.ConversationDatabase
|
||||
conversationNotificationSender *notification.ConversationNotificationSender
|
||||
msgRpcClient rpcclient.MsgClient
|
||||
msgRpcClient *rpcclient.MsgClient
|
||||
}
|
||||
|
||||
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{
|
||||
conversationNotificationSender: notification.NewConversationNotificationSender(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)),
|
||||
})
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user