Skip to content

Commit

Permalink
fix ExponentialLockRetrier use in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
camallen authored Dec 6, 2024
1 parent fc016e4 commit 35d5c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/online_migrations/lock_retrier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def delay(_attempt)
# # This will attempt 30 retries starting with delay of 10ms between each unsuccessful try, increasing exponentially
# # up to the maximum delay of 1 minute and 200ms set as lock timeout for each try:
#
# config.retrier = OnlineMigrations::ConstantLockRetrier.new(attempts: 30,
# config.retrier = OnlineMigrations::ExponentialLockRetrier.new(attempts: 30,
# base_delay: 0.01.seconds, max_delay: 1.minute, lock_timeout: 0.2.seconds)
#
class ExponentialLockRetrier < LockRetrier
Expand Down

0 comments on commit 35d5c48

Please sign in to comment.