[#645] ir/rpc: Revert using client cache as interface

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-09-28 08:39:18 +03:00 committed by Alex Vanin
parent 3a497a3c53
commit 81e0396c13

View file

@ -21,7 +21,10 @@ import (
type (
ClientCache struct {
log *zap.Logger
cache *cache.ClientCache
cache interface {
Get(clientcore.NodeInfo) (client.Client, error)
CloseAll()
}
key *ecdsa.PrivateKey
sgTimeout, headTimeout, rangeTimeout time.Duration