Skip to content

Commit 208fcc2

Browse files
committed
review
1 parent 3f49238 commit 208fcc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpn/tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ func (u *updater) recordLatencies() {
630630
go func() {
631631
// We need a waitgroup to cancel the context after all pings are done.
632632
var wg sync.WaitGroup
633-
pingCtx, cancelFunc := context.WithTimeout(u.ctx, 5*time.Second)
633+
pingCtx, cancelFunc := context.WithTimeout(u.ctx, netStatusInterval)
634634
defer cancelFunc()
635635
for _, agentID := range agentsIDsToPing {
636636
wg.Add(1)

0 commit comments

Comments
 (0)