We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be15860 commit 5d4ce45Copy full SHA for 5d4ce45
1 file changed
p2p/cache.go
@@ -24,7 +24,7 @@ type Cache[K comparable, V any] struct {
24
type entry[K comparable, V any] struct {
25
key K
26
value V
27
- expiresAt *time.Time // nil when TTL=0, saves 16 bytes per entry
+ expiresAt *time.Time
28
}
29
30
// NewCache creates a new cache with the given options.
0 commit comments