Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conc: ddb-lock use backoff settings provided; #1009

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

netsi
Copy link
Collaborator

@netsi netsi commented Feb 9, 2023

No description provided.

@@ -59,6 +59,19 @@ func NewDdbLockProvider(ctx context.Context, config cfg.Config, logger log.Logge
return nil, fmt.Errorf("can not create ddb repository: %w", err)
}

backoffConfig := backoff.NewExponentialBackOff()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not used afterwards. But it should be used in line 78 instead of the backoff.NewExponentialBackOff()? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true it should use the backoffConfig instead

Copy link
Member

@j4k4 j4k4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz have a look at the usage of the new backoffConfig

@netsi netsi force-pushed the conc-ddb-lock-use-backoff-setings-provided branch from 34fa3c2 to 0c32306 Compare November 16, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants