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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user