bunch of qol (#2748)

This commit is contained in:
Kristoffer Dalby 2025-08-27 17:09:13 +02:00 committed by GitHub
parent 1a7a2f4196
commit 8e25f7f9dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 307 additions and 95 deletions

View file

@ -24,6 +24,7 @@ type Batcher interface {
ConnectedMap() *xsync.Map[types.NodeID, bool]
AddWork(c change.ChangeSet)
MapResponseFromChange(id types.NodeID, c change.ChangeSet) (*tailcfg.MapResponse, error)
DebugMapResponses() (map[types.NodeID][]tailcfg.MapResponse, error)
}
func NewBatcher(batchTime time.Duration, workers int, mapper *mapper) *LockFreeBatcher {