From df9e7bf6eeffb6fad591096e2dba097699c2f6c6 Mon Sep 17 00:00:00 2001 From: = Date: Sun, 9 Mar 2025 22:06:27 +0530 Subject: [PATCH] feat: renamed timeout --- cli/packages/gateway/gateway.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/packages/gateway/gateway.go b/cli/packages/gateway/gateway.go index c067d52a1..bcf977d6d 100644 --- a/cli/packages/gateway/gateway.go +++ b/cli/packages/gateway/gateway.go @@ -345,10 +345,10 @@ func (g *Gateway) registerRelayIsActive(ctx context.Context, addr string, errCh return case <-ticker.C: log.Debug().Msg("Performing relay connection health check") - ctx, cancel := context.WithTimeout(ctx, 5*time.Second) + ctxTimeout, cancel := context.WithTimeout(ctx, 5*time.Second) defer cancel() // Try to establish a QUIC connection - conn, err := quic.DialAddr(ctx, addr, &tls.Config{ + conn, err := quic.DialAddr(ctxTimeout, addr, &tls.Config{ InsecureSkipVerify: false, // Skip certificate verification NextProtos: []string{"infisical-gateway"}, }, nil)