set NoSync option for bolt livesets
This commit is contained in:
parent
73259aa350
commit
364076c1ea
@ -26,6 +26,7 @@ func NewBoltLiveSetEnv(path string) (*BoltLiveSetEnv, error) {
|
|||||||
db, err := bolt.Open(path, 0644,
|
db, err := bolt.Open(path, 0644,
|
||||||
&bolt.Options{
|
&bolt.Options{
|
||||||
Timeout: 1 * time.Second,
|
Timeout: 1 * time.Second,
|
||||||
|
NoSync: true,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user