Commit be686e12 authored by Sean Carroll's avatar Sean Carroll

Dont mix positional and named args

parent e4bfca48
......@@ -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