diff --git a/pkg/relayer/relayminer.go b/pkg/relayer/relayminer.go index fdce69333..645cebe19 100644 --- a/pkg/relayer/relayminer.go +++ b/pkg/relayer/relayminer.go @@ -169,7 +169,7 @@ func (rel *relayMiner) newPinghandlerFn(ctx context.Context, ln net.Listener) ht rel.logger.Debug().Msg("pinging relay servers...") if err := rel.relayerProxy.PingAll(ctx); err != nil { - var urlError url.Error + var urlError *url.Error if errors.As(err, &urlError) && urlError.Temporary() { w.WriteHeader(http.StatusGatewayTimeout) } else {