Skip to content

Commit

Permalink
change multiclient
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Sep 27, 2024
1 parent 0793c67 commit 15914b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration-tests/deployment/multiclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ func (mc *MultiClient) retryWithBackups(op func(*ethclient.Client) error, accept
err2 = retry.Do(func() error {
err := op(client)
if err != nil {
// Check if the error is one of the accepted errors
// If it is, log it and return nil
for _, acceptedError := range acceptedErrors {
if errors.Is(err, acceptedError) {
mc.logger.Debugf("acceptable error %+v with client %d for op %s", err, i+1, funcName)
Expand Down

0 comments on commit 15914b8

Please sign in to comment.