Skip to content

Commit

Permalink
chore(op-program): Turn off fsync on pebble KV store (ethereum-opti…
Browse files Browse the repository at this point in the history
…mism#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
  • Loading branch information
clabby authored Sep 12, 2024
1 parent e374443 commit d887cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-program/host/kvstore/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewPebbleKV(path string) *PebbleKV {
func (d *PebbleKV) Put(k common.Hash, v []byte) error {
d.Lock()
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) {
Expand Down

0 comments on commit d887cfa

Please sign in to comment.