mirror of
https://github.com/dpup/meshstream.git
synced 2026-03-28 17:42:37 +01:00
chore: go fmt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -82,9 +82,9 @@ type entry struct {
|
|||||||
type NodeAwareCache struct {
|
type NodeAwareCache struct {
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
entries []entry
|
entries []entry
|
||||||
nodeLastSeen map[uint32]int64 // nodeID → unix timestamp of most recent packet
|
nodeLastSeen map[uint32]int64 // nodeID → unix timestamp of most recent packet
|
||||||
routerNodes map[uint32]bool // nodeIDs identified as router-role devices
|
routerNodes map[uint32]bool // nodeIDs identified as router-role devices
|
||||||
maxSize int // global safety cap
|
maxSize int // global safety cap
|
||||||
retention time.Duration
|
retention time.Duration
|
||||||
nowFunc func() time.Time // injectable for testing
|
nowFunc func() time.Time // injectable for testing
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user