feat: renamed timeout

This commit is contained in:
=
2025-03-09 22:06:27 +05:30
parent 04479bb70a
commit df9e7bf6ee

View File

@ -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)