node/pkg/solana: add delay for retries

Change-Id: I106300e802420ef50f1309825aecf37bb18d4c20
This commit is contained in:
Leo 2021-09-29 23:16:04 +02:00
parent 49c3be0b79
commit a6fe7fc54c
1 changed files with 2 additions and 0 deletions

View File

@ -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)),