From 883f7e6edae6f586b5ac840d543d96ed073632ee Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "ethdb/pebble: fix NewBatchWithSize to set db (#27350)" This reverts commit a968f04a4fa2bc440582d66a21cd4491c7697628. --- ethdb/pebble/pebble.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ethdb/pebble/pebble.go b/ethdb/pebble/pebble.go index b43529eddbcc..e5380847776e 100644 --- a/ethdb/pebble/pebble.go +++ b/ethdb/pebble/pebble.go @@ -307,8 +307,7 @@ func (d *Database) NewBatch() ethdb.Batch { // batch object without any pre-allocated space. func (d *Database) NewBatchWithSize(_ int) ethdb.Batch { return &batch{ - b: d.db.NewBatch(), - db: d, + b: d.db.NewBatch(), } }