Commit be686e12 authored by Sean Carroll's avatar Sean Carroll 💬

Dont mix positional and named args

parent e4bfca48
Pipeline #79800252 passed with stages
in 82 minutes and 51 seconds
......@@ -4,7 +4,7 @@ module Gitlab
module OptimisticLocking
module_function
def retry_lock(subject, retries: nil, &block)
def retry_lock(subject, retries = nil, &block)
retries ||= 100
# TODO(Observability): We should be recording details of the number of retries and the duration of the total execution here
ActiveRecord::Base.transaction do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment