Commit d887cfa9 authored by clabby's avatar clabby Committed by GitHub

chore(op-program): Turn off `fsync` on pebble KV store (#11863)

* chore: Cleanup proofs actions

* tidy

* lint

* adrian review

* move `RunFaultProofProgram` onto the `L2FaultProofEnv` type

* chore(op-program): Turn off `fsync` on pebble KV store
parent e3744430
...@@ -38,7 +38,7 @@ func NewPebbleKV(path string) *PebbleKV { ...@@ -38,7 +38,7 @@ func NewPebbleKV(path string) *PebbleKV {
func (d *PebbleKV) Put(k common.Hash, v []byte) error { func (d *PebbleKV) Put(k common.Hash, v []byte) error {
d.Lock() d.Lock()
defer d.Unlock() defer d.Unlock()
return d.db.Set(k.Bytes(), v, pebble.Sync) return d.db.Set(k.Bytes(), v, pebble.NoSync)
} }
func (d *PebbleKV) Get(k common.Hash) ([]byte, error) { func (d *PebbleKV) Get(k common.Hash) ([]byte, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment