Skip to content

Commit

Permalink
Revert "ethdb/pebble: fix NewBatchWithSize to set db (ethereum#27350)"
Browse files Browse the repository at this point in the history
This reverts commit a968f04.
  • Loading branch information
devopsbo3 committed Nov 10, 2023
1 parent 3d4b96e commit 883f7e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ethdb/pebble/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
}

Expand Down

0 comments on commit 883f7e6

Please sign in to comment.