Skip to content

Commit

Permalink
fixup! Cache functionality and delivery-service-based finality listeners
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Jan 5, 2025
1 parent 1046f3f commit ac13d1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/common/utils/cache/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,7 @@ func (e *timeoutEviction[K]) cleanup(timeout time.Duration) {
}

func (e *timeoutEviction[K]) Push(key K) {
e.mu.Lock()
defer e.mu.Unlock()
e.keys = append(e.keys, timeoutEntry[K]{key: key, created: time.Now()})
}

0 comments on commit ac13d1d

Please sign in to comment.