mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 14:27:59 +00:00
remove background context
This commit is contained in:
@@ -341,9 +341,9 @@ func (g *Gateway) registerRelayIsActive(ctx context.Context, relayAddress string
|
|||||||
EnableDatagrams: true,
|
EnableDatagrams: true,
|
||||||
}
|
}
|
||||||
func() {
|
func() {
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
|
checkCtx, cancel := context.WithTimeout(ctx, 3*time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
conn, err := quic.DialAddr(ctx, relayAddress, tlsConfig, quicConfig)
|
conn, err := quic.DialAddr(checkCtx, relayAddress, tlsConfig, quicConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
failures++
|
failures++
|
||||||
log.Warn().Err(err).Int("failures", failures).Msg("Relay connection check failed")
|
log.Warn().Err(err).Int("failures", failures).Msg("Relay connection check failed")
|
||||||
|
|||||||
Reference in New Issue
Block a user