Reload swift token from file every 30 minutes
We have seen requests fail because of an expired token that was loaded from file less than an hour ago
This commit is contained in:
parent
55835ac341
commit
74063a3f66
@ -447,7 +447,7 @@ module RemoteStorage
|
||||
end
|
||||
|
||||
def swift_token
|
||||
reload_swift_token if Time.now - settings.swift_token_loaded_at > 3600
|
||||
reload_swift_token if Time.now - settings.swift_token_loaded_at > 1800
|
||||
|
||||
settings.swift_token
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user