templates/default/service/client/_client.erb in gapic-generator-0.4.0 vs templates/default/service/client/_client.erb in gapic-generator-0.4.2
- old
+ new
@@ -27,11 +27,11 @@
# ## Example
#
# To modify the configuration for all <%= service.name %> clients:
#
# <%= service.client_name_full %>.configure do |config|
- # config.timeout = 10_000
+ # config.timeout = 10.0
# end
#
# @yield [config] Configure the <%= service.client_name %> client.
# @yieldparam config [<%= service.client_name %>::Configuration]
#
@@ -73,11 +73,11 @@
#
# To create a new <%= service.name %> client with a custom
# configuration:
#
# client = <%= service.client_name_full %>.new do |config|
- # config.timeout = 10_000
+ # config.timeout = 10.0
# end
#
# @yield [config] Configure the <%= service.name %> client.
# @yieldparam config [<%= service.client_name %>::Configuration]
#
@@ -107,10 +107,10 @@
config.credentials = credentials
config.endpoint = @config.endpoint
end
<%- end -%>
- @<%= service.stub_name %> = Gapic::ServiceStub.new(
+ @<%= service.stub_name %> = ::Gapic::ServiceStub.new(
<%= service.proto_service_stub_name_full %>,
credentials: credentials,
endpoint: @config.endpoint,
channel_args: @config.channel_args,
interceptors: @config.interceptors