Skip to content

Commit

Permalink
Apply betteralign
Browse files Browse the repository at this point in the history
  • Loading branch information
mgnsk committed Aug 9, 2024
1 parent eb9bec8 commit 8f01c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ type Backend[K comparable, V any] struct {
timer *time.Timer // timer until the next element expiry.
xmap map[K]*ringlist.Element[Record[K, V]] // map of uninitialized and initialized elements
list ringlist.List[Record[K, V]] // list of initialized elements
policy string
lastGCAt int64
earliestExpireAt int64
cap int
policy string
defaultTTL time.Duration
debounce time.Duration
lastLen int
numDeleted uint64
gcStarted bool
mu sync.Mutex
gcStarted bool
}

// Init initializes the cache.
Expand Down

0 comments on commit 8f01c70

Please sign in to comment.