From a8ba573ec8983f2919f7651c443f81e3181d593b Mon Sep 17 00:00:00 2001
From: Pavel Karpy <carpawell@nspcc.ru>
Date: Mon, 27 Dec 2021 14:05:30 +0300
Subject: [PATCH] [#1057] node/config: Use mode from config in shard/s
 constructor

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
---
 cmd/neofs-node/config.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go
index b4b5cc4222..ed54d2243e 100644
--- a/cmd/neofs-node/config.go
+++ b/cmd/neofs-node/config.go
@@ -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()),