forked from TrueCloudLab/frostfs-s3-gw
[#206] Refactor ListObjectsCache
Replaced conflicting names Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
4ca56d3d6e
commit
ae19eb4ad4
4 changed files with 15 additions and 14 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue