summaryrefslogtreecommitdiff
path: root/lib/gitlab/exclusive_lease.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-03-10 12:58:51 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-03-10 12:58:51 +0100
commit66d5d9229de499455ca1c28f1718cec456884685 (patch)
treee009b0e396021433a2fd663a3996ca4e66cae33f /lib/gitlab/exclusive_lease.rb
parenta28c84b4cab48d4ca7cc39985e1e67155a8a95d5 (diff)
downloadgitlab-ce-66d5d9229de499455ca1c28f1718cec456884685.tar.gz
Improve comment
Diffstat (limited to 'lib/gitlab/exclusive_lease.rb')
-rw-r--r--lib/gitlab/exclusive_lease.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/exclusive_lease.rb b/lib/gitlab/exclusive_lease.rb
index 0ed4c357926..8bf6f13b99d 100644
--- a/lib/gitlab/exclusive_lease.rb
+++ b/lib/gitlab/exclusive_lease.rb
@@ -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:)