Commit 261214ef authored by Jacob Vosmaer's avatar Jacob Vosmaer

Make comment less ambivalent

parent f4d478a6
...@@ -23,8 +23,7 @@ module Gitlab ...@@ -23,8 +23,7 @@ module Gitlab
# Try to obtain the lease. Return true on succes, # Try to obtain the lease. Return true on succes,
# false if the lease is already taken. # false if the lease is already taken.
def try_obtain def try_obtain
# This is expected to be atomic because we are talking to a # Performing a single SET is atomic
# single-threaded Redis server.
!!redis.set(redis_key, '1', nx: true, ex: @timeout) !!redis.set(redis_key, '1', nx: true, ex: @timeout)
end end
......
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