mirror of
https://github.com/dkam/suo.git
synced 2025-01-29 07:42:43 +00:00
fix refresh token
This commit is contained in:
@@ -24,7 +24,7 @@ module Suo
|
||||
|
||||
if block_given? && token
|
||||
begin
|
||||
yield
|
||||
yield(token)
|
||||
ensure
|
||||
unlock(key, token)
|
||||
end
|
||||
@@ -119,7 +119,7 @@ module Suo
|
||||
fail NotImplementedError
|
||||
end
|
||||
|
||||
def set(key, newval, oldval) # rubocop:disable Lint/UnusedMethodArgument
|
||||
def set(key, newval, cas) # rubocop:disable Lint/UnusedMethodArgument
|
||||
fail NotImplementedError
|
||||
end
|
||||
|
||||
@@ -182,7 +182,7 @@ module Suo
|
||||
|
||||
def refresh_lock(locks, acquisition_token)
|
||||
remove_lock(locks, acquisition_token)
|
||||
add_lock(locks, token)
|
||||
add_lock(locks, acquisition_token)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user