Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Mar 23, 2024
1 parent 747e9e3 commit 7e25ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions badger_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (b *BadgerDB) Close() error {
return b.db.Close()
}

func (b *BadgerDB) Print() error {
func (*BadgerDB) Print() error {

Check warning on line 128 in badger_db.go

View check run for this annotation

Codecov / codecov/patch

badger_db.go#L128

Added line #L128 was not covered by tests
return nil
}

Expand Down Expand Up @@ -163,11 +163,11 @@ func (b *BadgerDB) ReverseIterator(start, end []byte) (Iterator, error) {
return b.iteratorOpts(end, start, opts)
}

func (b *BadgerDB) Stats() map[string]string {
func (*BadgerDB) Stats() map[string]string {

Check warning on line 166 in badger_db.go

View check run for this annotation

Codecov / codecov/patch

badger_db.go#L166

Added line #L166 was not covered by tests
return nil
}

func (b *BadgerDB) Compact(start, end []byte) error {
func (*BadgerDB) Compact(start, end []byte) error {
// Explicit compaction is not currently supported in badger
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (db *PebbleDB) Compact(start, end []byte) (err error) {
end = append(end, iter.Key()...)
}
err = db.db.Compact(start, end, true)
return
return err
}

// Close implements DB.
Expand Down

0 comments on commit 7e25ac4

Please sign in to comment.