From 97e32544deb8f2cdd30530be1c526d1e99841a66 Mon Sep 17 00:00:00 2001 From: clabby Date: Wed, 11 Sep 2024 22:58:34 -0400 Subject: [PATCH] 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 --- op-program/host/kvstore/pebble.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-program/host/kvstore/pebble.go b/op-program/host/kvstore/pebble.go index 1276fa6b7ef7b..fc68d07853c9b 100644 --- a/op-program/host/kvstore/pebble.go +++ b/op-program/host/kvstore/pebble.go @@ -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) {