From 81e0396c139d415d6db51917d89dd7c811c56941 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 28 Sep 2021 08:39:18 +0300 Subject: [PATCH] [#645] ir/rpc: Revert using client cache as interface Signed-off-by: Leonard Lyubich --- pkg/innerring/rpc.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/innerring/rpc.go b/pkg/innerring/rpc.go index d51f48441..5421a531b 100644 --- a/pkg/innerring/rpc.go +++ b/pkg/innerring/rpc.go @@ -21,8 +21,11 @@ import ( type ( ClientCache struct { log *zap.Logger - cache *cache.ClientCache - key *ecdsa.PrivateKey + cache interface { + Get(clientcore.NodeInfo) (client.Client, error) + CloseAll() + } + key *ecdsa.PrivateKey sgTimeout, headTimeout, rangeTimeout time.Duration }