Commit be686e12 authored by Sean Carroll's avatar Sean Carroll

Dont mix positional and named args

parent e4bfca48
...@@ -4,7 +4,7 @@ module Gitlab ...@@ -4,7 +4,7 @@ module Gitlab
module OptimisticLocking module OptimisticLocking
module_function module_function
def retry_lock(subject, retries: nil, &block) def retry_lock(subject, retries = nil, &block)
retries ||= 100 retries ||= 100
# TODO(Observability): We should be recording details of the number of retries and the duration of the total execution here # TODO(Observability): We should be recording details of the number of retries and the duration of the total execution here
ActiveRecord::Base.transaction do 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