Skip to content

Commit

Permalink
Fix: teztnets first run
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Sep 5, 2023
1 parent ad164ba commit 0394ba3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/periodic/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,12 @@ func (w *Worker) checkNetwork(ctx context.Context) (bool, error) {
}

if w.currentUrl != data.RPCURL {
w.currentUrl = data.RPCURL

if w.currentUrl != "" {
if err := w.handler(ctx, w.network.String(), data.RPCURL); err != nil {
logger.Error().Err(err).Str("network", w.network.String()).Msg("failed to apply new rpc url")
}
}
w.currentUrl = data.RPCURL

logger.Info().Str("network", parts[0]).Str("url", w.currentUrl).Msg("new url was found")
return true, nil
Expand Down

0 comments on commit 0394ba3

Please sign in to comment.