From a6fe7fc54cde17035c11715c71b2be9d76601cc2 Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 29 Sep 2021 23:16:04 +0200 Subject: [PATCH] node/pkg/solana: add delay for retries Change-Id: I106300e802420ef50f1309825aecf37bb18d4c20 --- node/pkg/solana/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node/pkg/solana/client.go b/node/pkg/solana/client.go index c64739e4a..148cbca7a 100644 --- a/node/pkg/solana/client.go +++ b/node/pkg/solana/client.go @@ -216,6 +216,8 @@ func (s *SolanaWatcher) retryFetchBlock(ctx context.Context, slot uint64, retry return } + time.Sleep(5 * time.Second) + s.logger.Info("retrying block", zap.Uint64("slot", slot), zap.String("commitment", string(s.commitment)),