Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek committed Apr 4, 2019
1 parent 6c5fcc1 commit f96935f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dbnode/storage/index/postings_list_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (q *PostingsListCache) emitCacheGetMetrics(patternType PatternType, hit boo
case PatternTypeField:
method = q.metrics.field
default:
method = q.metrics.unknown
method = q.metrics.unknown // should never happen
}
if hit {
method.hits.Inc(1)
Expand All @@ -259,7 +259,7 @@ func (q *PostingsListCache) emitCachePutMetrics(patternType PatternType) {
case PatternTypeField:
q.metrics.field.puts.Inc(1)
default:
q.metrics.unknown.puts.Inc(1)
q.metrics.unknown.puts.Inc(1) // should never happen
}
}

Expand Down

0 comments on commit f96935f

Please sign in to comment.