Sha256: dc5cbfd352a4402787cc1f422639ceea389f46d587da37790690b0995237c50d
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
<%- assert_locals service -%> <%- method_service ||= service -%> <%- if service.grpc_service_config && !service.grpc_service_config.empty? -%> <%- if service.grpc_service_config.timeout_seconds -%> default_config.timeout = <%= service.grpc_service_config.timeout_seconds %> <%- end -%> <%- if service.grpc_service_config.retry_policy -%> default_config.retry_policy = <%= indent_tail render(partial: "service/client/self_configure_retry_policy", locals: { retry_policy: service.grpc_service_config.retry_policy }), 2 %> <%- end -%> <%- end -%> <%- method_service.methods.each do |method| -%> <%- if method.grpc_service_config && !method.grpc_service_config.empty? -%> <%- if method.grpc_service_config.timeout_seconds -%> default_config.rpcs.<%= method.name %>.timeout = <%= method.grpc_service_config.timeout_seconds %> <%- end -%> <%- if method.grpc_service_config.retry_policy -%> default_config.rpcs.<%= method.name %>.retry_policy =<%= indent_tail render(partial: "service/client/self_configure_retry_policy", locals: { retry_policy: method.grpc_service_config.retry_policy }), 2 %> <%- end -%> <%- end -%> <%- end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gapic-generator-0.1.2 | templates/default/service/client/_self_configure_defaults.erb |
gapic-generator-0.1.1 | templates/default/service/client/_self_configure_defaults.erb |