Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
ying-jeanne committed Dec 24, 2024
1 parent 4706bde commit 1ab1f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/costattribution/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (m *Manager) purgeInactiveAttributionsUntil(deadline int64) error {
t.cleanupTrackerAttribution(key)
}

if t.recoverFromOverflow(deadline) {
if t.recoveredFromOverflow(deadline) {
m.deleteTracker(userID)
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/costattribution/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (t *Tracker) createNewObservation(key []byte, ts int64, activeSeriesIncreme
}
}

func (t *Tracker) recoverFromOverflow(deadline int64) bool {
func (t *Tracker) recoveredFromOverflow(deadline int64) bool {
t.observedMtx.RLock()
if t.cooldownUntil > 0 && t.cooldownUntil < deadline {
if len(t.observed) <= t.maxCardinality {
Expand Down

0 comments on commit 1ab1f00

Please sign in to comment.