mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-31 01:58:15 -04:00
Integrate context creation (`context.WithCancel`) directly in `NewPeer` and remove redundant initialization in `Work`. Add `ctxCancel` calls to ensure context is properly canceled during `Close` operations.