Refactor healthcheck sender and receiver to use configurable options (#4433)

This commit is contained in:
Zoltan Papp
2025-09-12 09:31:03 +02:00
committed by GitHub
parent cf7f6c355f
commit 0c6f671a7c
10 changed files with 186 additions and 176 deletions
+4 -3
View File
@@ -78,9 +78,10 @@ func NewManager(ctx context.Context, serverURLs []string, peerID string, mtu uin
tokenStore: tokenStore,
mtu: mtu,
serverPicker: &ServerPicker{
TokenStore: tokenStore,
PeerID: peerID,
MTU: mtu,
TokenStore: tokenStore,
PeerID: peerID,
MTU: mtu,
ConnectionTimeout: defaultConnectionTimeout,
},
relayClients: make(map[string]*RelayTrack),
onDisconnectedListeners: make(map[string]*list.List),