[#184] Use SDK client cache in object.Put
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
e9a6365333
commit
7ba95dd5fc
4 changed files with 30 additions and 15 deletions
|
@ -200,7 +200,7 @@ func initObjectService(c *cfg) {
|
|||
),
|
||||
replicator.WithLocalStorage(ls),
|
||||
replicator.WithRemoteSender(
|
||||
putsvc.NewRemoteSender(keyStorage),
|
||||
putsvc.NewRemoteSender(keyStorage, clientCache),
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -246,6 +246,7 @@ func initObjectService(c *cfg) {
|
|||
|
||||
sPut := putsvc.NewService(
|
||||
putsvc.WithKeyStorage(keyStorage),
|
||||
putsvc.WithClientCache(clientCache),
|
||||
putsvc.WithMaxSizeSource(c),
|
||||
putsvc.WithLocalStorage(ls),
|
||||
putsvc.WithContainerSource(c.cfgObject.cnrStorage),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue