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, client,
offlinePusher, offlinePusher,
database, database,
rpccache.NewGroupLocalCache(rpcclient.NewGroupRpcClient(client), rdb), rpccache.NewGroupLocalCache(groupRpcClient, rdb),
rpccache.NewConversationLocalCache(rpcclient.NewConversationRpcClient(client), rdb), rpccache.NewConversationLocalCache(conversationRpcClient, rdb),
&conversationRpcClient, &conversationRpcClient,
&groupRpcClient, &groupRpcClient,
&msgRpcClient, &msgRpcClient,