Revert "ethdb/pebble: fix NewBatchWithSize to set db (#27350)"

This reverts commit a968f04a4f.
This commit is contained in:
devopsbo3 2023-11-10 12:27:53 -06:00 committed by GitHub
parent 3d4b96efde
commit 883f7e6eda

View file

@ -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(),
}
}