fix refresh token

This commit is contained in:
Nick Elser
2015-04-13 19:37:34 -07:00
parent 754d7d8faf
commit 49a9757d44

View File

@@ -24,7 +24,7 @@ module Suo
if block_given? && token if block_given? && token
begin begin
yield yield(token)
ensure ensure
unlock(key, token) unlock(key, token)
end end
@@ -119,7 +119,7 @@ module Suo
fail NotImplementedError fail NotImplementedError
end end
def set(key, newval, oldval) # rubocop:disable Lint/UnusedMethodArgument def set(key, newval, cas) # rubocop:disable Lint/UnusedMethodArgument
fail NotImplementedError fail NotImplementedError
end end
@@ -182,7 +182,7 @@ module Suo
def refresh_lock(locks, acquisition_token) def refresh_lock(locks, acquisition_token)
remove_lock(locks, acquisition_token) remove_lock(locks, acquisition_token)
add_lock(locks, token) add_lock(locks, acquisition_token)
end end
end end
end end