Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

remove background context

Maidul Islam08f23e2d3cd5
diff --git a/cli/packages/gateway/gateway.go b/cli/packages/gateway/gateway.go
index ae18d493e4..43340df385 100644
--- a/cli/packages/gateway/gateway.go
+++ b/cli/packages/gateway/gateway.go
@@ -341,9 +341,9 @@ func (g *Gateway) registerRelayIsActive(ctx context.Context, relayAddress string
EnableDatagrams: true,
}
func() {
- ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
+ checkCtx, cancel := context.WithTimeout(ctx, 3*time.Second)
defer cancel()
- conn, err := quic.DialAddr(ctx, relayAddress, tlsConfig, quicConfig)
+ conn, err := quic.DialAddr(checkCtx, relayAddress, tlsConfig, quicConfig)
if err != nil {
failures++
log.Warn().Err(err).Int("failures", failures).Msg("Relay connection check failed")