diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-14 16:39:40 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-14 16:39:40 +0100 |
commit | aa224c13fc8d9712e634dcb3843c73d3838fb20a (patch) | |
tree | 0a6729b9462b778ac918bba1e6c1c2b08293b5a1 | |
parent | 0d43815620f96a061d7bc5c2c53748cac879c518 (diff) | |
download | gitlab-ce-aa224c13fc8d9712e634dcb3843c73d3838fb20a.tar.gz |
typo-o
-rw-r--r-- | app/workers/build_queue_worker.rb | 2 | ||||
-rw-r--r-- | lib/ci/api/builds.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/build_queue_worker.rb b/app/workers/build_queue_worker.rb index 1ec020039cf..4cb910e90ca 100644 --- a/app/workers/build_queue_worker.rb +++ b/app/workers/build_queue_worker.rb @@ -7,7 +7,7 @@ class BuildQueueWorker project.runners.select do |runner| if runner.can_pick?(build) # Inject last_update into Redis - Gitlab::Redis.with do |redis] + Gitlab::Redis.with do |redis| new_update = Time.new.inspect redis.set(runner_redis_key(runner), new_update, ex: 60.minutes) end diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb index 1ec4584a13f..acb0ca8719f 100644 --- a/lib/ci/api/builds.rb +++ b/lib/ci/api/builds.rb @@ -36,7 +36,7 @@ module Ci Gitlab::Metrics.add_event(:build_not_found) if last_update == "" - Gitlab::Redis.with do |redis] + Gitlab::Redis.with do |redis| new_update = Time.new.inspect redis.set(current_runner_redis_key, new_update, ex: 60.minutes) headers 'X-GitLab-Last-Update', new_update |