Skip to content
Snippets Groups Projects
Commit 66d5d922 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Improve comment

parent a28c84b4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,8 +14,8 @@ module Gitlab
# most once an hour). If the timeout is lower than how long your
# operation may take then you cannot count on exclusivity. For example,
# if the timeout is 10 seconds and you do an operation which may take 20
# seconds then two overlapping operations may hold a lease at the
# same time.
# seconds then two overlapping operations may hold a lease for the same
# key at the same time.
#
class ExclusiveLease
def initialize(key, timeout:)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment