[#323] cmd/node: Set BoltDB timeout option of Metabase component
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a9c1f88b8a
commit
3bf1519b1d
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,7 @@ import (
|
|||
"github.com/panjf2000/ants/v2"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/viper"
|
||||
"go.etcd.io/bbolt"
|
||||
"go.uber.org/atomic"
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/grpc"
|
||||
|
@ -572,6 +573,9 @@ func initShardOptions(c *cfg) {
|
|||
meta.WithLogger(c.log),
|
||||
meta.WithPath(metaPath),
|
||||
meta.WithPermissions(metaPerm),
|
||||
meta.WithBoltDBOptions(&bbolt.Options{
|
||||
Timeout: 100 * time.Millisecond,
|
||||
}),
|
||||
),
|
||||
shard.WithWriteCache(useCache),
|
||||
shard.WithWriteCacheOptions(
|
||||
|
|
Loading…
Reference in a new issue