Commit 2a10bb66 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Rename `timeouted?` method to `timed_out?`

Fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/6796
parent 2e2317a7
...@@ -33,7 +33,7 @@ module Clusters ...@@ -33,7 +33,7 @@ module Clusters
end end
def check_timeout def check_timeout
if timeouted? if timed_out?
begin begin
app.make_update_errored!('Update timed out') app.make_update_errored!('Update timed out')
ensure ensure
...@@ -45,7 +45,7 @@ module Clusters ...@@ -45,7 +45,7 @@ module Clusters
end end
end end
def timeouted? def timed_out?
Time.now.utc - app.updated_at.to_time.utc > ::ClusterWaitForAppUpdateWorker::TIMEOUT Time.now.utc - app.updated_at.to_time.utc > ::ClusterWaitForAppUpdateWorker::TIMEOUT
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment