diff --git a/pkg/innerring/rpc.go b/pkg/innerring/rpc.go index d51f4844..5421a531 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 }