[#1057] node/config: Use mode from config in shard/s constructor

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-12-27 14:05:30 +03:00 committed by Pavel Karpy
parent 8b8a815fb3
commit a8ba573ec8

View file

@ -404,6 +404,7 @@ func initShardOptions(c *cfg) {
opts = append(opts, []shard.Option{
shard.WithLogger(c.log),
shard.WithRefillMetabase(sc.RefillMetabase()),
shard.WithMode(sc.Mode()),
shard.WithBlobStorOptions(
blobstor.WithRootPath(blobStorCfg.Path()),
blobstor.WithCompressObjects(blobStorCfg.Compress()),