Skip to content

Commit

Permalink
Fixed compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalicevic committed Feb 7, 2024
1 parent cf6f5e8 commit 6c8b95e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ func (db *PebbleDB) Compact(start, end []byte) (err error) {
if start != nil && end != nil {
return db.db.Compact(start, end, true)
}
iter := db.db.NewIter(nil)
iter, err := db.db.NewIter(nil)
if err != nil {
return err
}
defer func() {
err2 := iter.Close()
if err2 != nil {
Expand Down

0 comments on commit 6c8b95e

Please sign in to comment.