[#323] cmd/node: Set default value of Blobovnicza's storage size limit
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
53f8f06f2d
commit
707434efa9
1 changed files with 3 additions and 0 deletions
|
@ -511,6 +511,9 @@ func initShardOptions(c *cfg) {
|
|||
blzSize := c.viper.GetUint64(
|
||||
configPath(blzPrefix, cfgBlzSize),
|
||||
)
|
||||
if blzSize == 0 {
|
||||
blzSize = 1 << 30 // 1 GB
|
||||
}
|
||||
|
||||
blzShallowDepth := c.viper.GetUint64(
|
||||
configPath(blzPrefix, cfgBlzShallowDepth),
|
||||
|
|
Loading…
Reference in a new issue