set NoSync option for bolt livesets

This commit is contained in:
vyzo 2021-02-27 16:06:33 +02:00
parent 73259aa350
commit 364076c1ea

View File

@ -26,6 +26,7 @@ func NewBoltLiveSetEnv(path string) (*BoltLiveSetEnv, error) {
db, err := bolt.Open(path, 0644,
&bolt.Options{
Timeout: 1 * time.Second,
NoSync: true,
})
if err != nil {
return nil, err