diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-09-28 19:02:31 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-09-28 20:13:48 +0300 |
commit | 2772109ac15bed2bd199294f8d770f49a749b4bd (patch) | |
tree | adae1f9a4d0c073182fd6d2e0c01b7dcb7428e2c /lib/api/internal.rb | |
parent | a4944fb7155fc8aa4d1541d9f1e4e80c00f49292 (diff) |
Handle LFS token creation and retrieval in the same method, and in the same Redis connection.
Reset expiry time of token, if token is retrieved again before it expires.
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r-- | lib/api/internal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index 090d04544da..9a5d1ece070 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -90,7 +90,7 @@ module API { username: token_handler.actor_name, - lfs_token: token_handler.generate, + lfs_token: token_handler.token, repository_http_path: project.http_url_to_repo } end |