Skip to content

Commit

Permalink
remove error check which skips batching retries [BCI-3359](https://sm…
Browse files Browse the repository at this point in the history
…artcontract-it.atlassian.net/browse/BCI-3359) (#13671)

* remove error check which skips batching retries

* fix typo in changeset
  • Loading branch information
poopoothegorilla authored Jun 24, 2024
1 parent fc3a291 commit 4493b96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-camels-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#bugfix fixed ureachable code bug which could result in stuck txns
3 changes: 0 additions & 3 deletions core/chains/evm/logpoller/orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,6 @@ func (o *DSORM) insertLogsWithinTx(ctx context.Context, logs []Log, tx sqlutil.D
ON CONFLICT DO NOTHING`

_, err := o.ds.NamedExecContext(ctx, query, logs[start:end])
if err != nil {
return err
}
if err != nil {
if pkgerrors.Is(err, context.DeadlineExceeded) && batchInsertSize > 500 {
// In case of DB timeouts, try to insert again with a smaller batch upto a limit
Expand Down

0 comments on commit 4493b96

Please sign in to comment.