Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Exca-DK committed Sep 20, 2023
1 parent 8754e2e commit beb142e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion db/pebble/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ type DB struct {

// New opens a new database at the given path
func New(path string, logger pebble.Logger) (db.DB, error) {
pDB, err := newPebble(path, &pebble.Options{Logger: logger})
pDB, err := newPebble(path, &pebble.Options{
Logger: logger,
})
if err != nil {
return nil, err
}
Expand Down
4 changes: 1 addition & 3 deletions db/pebble/db_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,6 @@ func newMemtableReporter() *memtableReporter {
Subsystem: subsystem,
Name: "zombies",
})

metrics.MustRegister(
reporter.metrics.Size,
reporter.metrics.Count,
Expand Down Expand Up @@ -700,7 +699,6 @@ func newKeysReporter() *keysReporter {
Subsystem: subsystem,
Name: "tombstones",
})

metrics.MustRegister(
reporter.metrics.RangeKeySets,
reporter.metrics.Tombstones,
Expand Down Expand Up @@ -1043,7 +1041,7 @@ func (reporter *logsReporter) registerFSyncHistogram(hist prometheus.Histogram)
type dualHistogram struct {
// valueHist represents a Prometheus Histogram for tracking metric values.
valueHist prometheus.Histogram
// valueHist represents a Prometheus Histogram for description.
// descrHistogram represents a Prometheus Histogram for description.
descrHistogram prometheus.Histogram
}

Expand Down

0 comments on commit beb142e

Please sign in to comment.