lib/google/cloud/bigquery/service.rb in google-cloud-bigquery-0.25.0 vs lib/google/cloud/bigquery/service.rb in google-cloud-bigquery-0.26.0
- old
+ new
@@ -56,12 +56,13 @@
@service ||= begin
service = API::BigqueryService.new
service.client_options.application_name = "gcloud-ruby"
service.client_options.application_version = \
Google::Cloud::Bigquery::VERSION
+ service.client_options.open_timeout_sec = timeout
+ service.client_options.read_timeout_sec = timeout
+ service.client_options.send_timeout_sec = timeout
service.request_options.retries = @retries || 3
- service.request_options.timeout_sec = @timeout
- service.request_options.open_timeout_sec = @timeout
service.request_options.header ||= {}
service.request_options.header["x-goog-api-client"] = \
"gl-ruby/#{RUBY_VERSION} gccl/#{Google::Cloud::Bigquery::VERSION}"
service.authorization = @credentials.client
service