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 {
|
||||
mu sync.Mutex
|
||||
entries []entry
|
||||
nodeLastSeen map[uint32]int64 // nodeID → unix timestamp of most recent packet
|
||||
routerNodes map[uint32]bool // nodeIDs identified as router-role devices
|
||||
maxSize int // global safety cap
|
||||
nodeLastSeen map[uint32]int64 // nodeID → unix timestamp of most recent packet
|
||||
routerNodes map[uint32]bool // nodeIDs identified as router-role devices
|
||||
maxSize int // global safety cap
|
||||
retention time.Duration
|
||||
nowFunc func() time.Time // injectable for testing
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user