Skip to content

Commit

Permalink
[chore] apply fieldalignment to ttlmap (#37318)
Browse files Browse the repository at this point in the history
```
internal/common/ttlmap/ttl_map.go:12:13: struct with 24 pointer bytes could be 16
internal/common/ttlmap/ttl_map.go:68:12: struct with 24 pointer bytes could be 16
```
  • Loading branch information
atoulme authored Jan 19, 2025
1 parent b28a329 commit 1b93d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/common/ttlmap/ttl_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
// TTLMap is a map that evicts entries after the configured ttl has elapsed.
type TTLMap struct {
md *ttlMapData
sweepInterval int64
done chan struct{}
sweepInterval int64
}

// New creates a TTLMap. The sweepIntervalSeconds arg indicates how often
Expand Down Expand Up @@ -66,8 +66,8 @@ func (m *TTLMap) Shutdown() {
}

type entry struct {
createTime int64
v any
createTime int64
}

type ttlMapData struct {
Expand Down

0 comments on commit 1b93d01

Please sign in to comment.