feat: local cache

This commit is contained in:
withchao 2024-01-16 17:19:29 +08:00
parent 9e4a7d082d
commit 4a042489bf

View File

@ -51,8 +51,8 @@ func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) e
client,
offlinePusher,
database,
rpccache.NewGroupLocalCache(rpcclient.NewGroupRpcClient(client), rdb),
rpccache.NewConversationLocalCache(rpcclient.NewConversationRpcClient(client), rdb),
rpccache.NewGroupLocalCache(groupRpcClient, rdb),
rpccache.NewConversationLocalCache(conversationRpcClient, rdb),
&conversationRpcClient,
&groupRpcClient,
&msgRpcClient,