mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: renamed timeout
This commit is contained in:
@@ -345,10 +345,10 @@ func (g *Gateway) registerRelayIsActive(ctx context.Context, addr string, errCh
|
|||||||
return
|
return
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
log.Debug().Msg("Performing relay connection health check")
|
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()
|
defer cancel()
|
||||||
// Try to establish a QUIC connection
|
// 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
|
InsecureSkipVerify: false, // Skip certificate verification
|
||||||
NextProtos: []string{"infisical-gateway"},
|
NextProtos: []string{"infisical-gateway"},
|
||||||
}, nil)
|
}, nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user