lib/gooddata/rest/client.rb in gooddata-0.6.48 vs lib/gooddata/rest/client.rb in gooddata-0.6.49
- old
+ new
@@ -5,10 +5,11 @@
# LICENSE file in the root directory of this source tree.
require 'rest-client'
require_relative '../helpers/auth_helpers'
+require_relative '../helpers/global_helpers'
require_relative 'connection'
require_relative 'object_factory'
require_relative '../mixins/inspector'
@@ -327,10 +328,10 @@
limit_breached = time_limit && (Time.now - poll_start > time_limit)
if limit_breached
fail ExecutionLimitExceeded, "The time limit #{time_limit} secs for polling on #{link} is over"
end
sleep sleep_interval
- GoodData::Rest::Client.retryable(:tries => ConnectionHelper::GD_MAX_RETRY, :refresh_token => proc { connection.refresh_token }) do
+ GoodData::Rest::Client.retryable(:tries => Helpers::GD_MAX_RETRY, :refresh_token => proc { connection.refresh_token }) do
response = get(link, process: process)
end
end
response
end