[#206] Refactor ListObjectsCache

Replaced conflicting names

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2021-08-10 15:23:55 +03:00 committed by Kirillov Denis
parent 4ca56d3d6e
commit ae19eb4ad4
4 changed files with 15 additions and 14 deletions

View file

@ -23,9 +23,10 @@ import (
type (
layer struct {
pool pool.Pool
log *zap.Logger
cache ObjectsListCache
pool pool.Pool
log *zap.Logger
listObjCache ObjectsListCache
}
// Params stores basic API parameters.
@ -130,9 +131,9 @@ const (
// and establishes gRPC connection with node.
func NewLayer(log *zap.Logger, conns pool.Pool) Client {
return &layer{
pool: conns,
log: log,
cache: newListObjectsCache(defaultCacheLifetime),
pool: conns,
log: log,
listObjCache: newListObjectsCache(defaultObjectsListCacheLifetime),
}
}