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

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-23 14:25:57 +03:00 committed by Alex Vanin
parent cb46e4b154
commit 6a5c37d592
2 changed files with 12 additions and 0 deletions

View file

@ -272,6 +272,7 @@ func initObjectService(c *cfg) {
searchsvc.WithNetworkMapSource(c.cfgObject.netMapStorage),
searchsvc.WithLocalAddressSource(c),
searchsvc.WithWorkerPool(c.cfgObject.pool.search),
searchsvc.WithLogger(c.log),
)
sSearchV2 := searchsvcV2.NewService(