[#323] cmd/node: Set default value of small size limit cfg of BlobStor

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-18 11:32:07 +03:00 committed by Alex Vanin
parent 1ab630eb24
commit 53f8f06f2d

View file

@ -502,6 +502,9 @@ func initShardOptions(c *cfg) {
smallSzLimit := c.viper.GetUint64(
configPath(blobPrefix, cfgBlobStorSmallSzLimit),
)
if smallSzLimit == 0 {
smallSzLimit = 1 << 20 // 1MB
}
blzPrefix := configPath(blobPrefix, cfgBlobStorBlzSection)