[#195] object/head: Add option to set logger

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-23 14:20:59 +03:00 committed by Alex Vanin
parent e1e5a590e9
commit 9fbfc0b5e4
2 changed files with 12 additions and 0 deletions

View file

@ -286,6 +286,7 @@ func initObjectService(c *cfg) {
headsvc.WithLocalAddressSource(c),
headsvc.WithRightChildSearcher(searchsvc.NewRightChildSearcher(sSearch)),
headsvc.WithWorkerPool(c.cfgObject.pool.head),
headsvc.WithLogger(c.log),
)
sHeadV2 := headsvcV2.NewService(