[#789] cmd/node: Add refill_metabase
config to shard
section
Implement `RefillMetabase` method to `shardconfig.Config` type which reads `refill_metabase` config value. Pass the result to `WithRefillMetabase` option. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
6bf7a00cfe
commit
b5fff810f4
2 changed files with 11 additions and 0 deletions
|
@ -384,6 +384,7 @@ func initShardOptions(c *cfg) {
|
|||
|
||||
opts = append(opts, []shard.Option{
|
||||
shard.WithLogger(c.log),
|
||||
shard.WithRefillMetabase(sc.RefillMetabase()),
|
||||
shard.WithBlobStorOptions(
|
||||
blobstor.WithRootPath(blobStorCfg.Path()),
|
||||
blobstor.WithCompressObjects(blobStorCfg.Compress(), c.log),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue