[#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,8 +21,11 @@ import (
type ( type (
ClientCache struct { ClientCache struct {
log *zap.Logger log *zap.Logger
cache *cache.ClientCache cache interface {
key *ecdsa.PrivateKey Get(clientcore.NodeInfo) (client.Client, error)
CloseAll()
}
key *ecdsa.PrivateKey
sgTimeout, headTimeout, rangeTimeout time.Duration sgTimeout, headTimeout, rangeTimeout time.Duration
} }