Skip to content

Commit

Permalink
fix: client streaming do not have request (#235)
Browse files Browse the repository at this point in the history
* fix: client streaming do not have request

* fix: same fix for bidi steaming
  • Loading branch information
alexander-fenster authored Feb 7, 2020
1 parent 456fed0 commit 3043372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ export class {{ service.name }}Client {
{{ method.name.toCamelCase() }}(
options?: gax.CallOptions):
gax.CancellableStream{
{{ util.buildHeaderRequestParam(method) }}
return this._innerApiCalls.{{ method.name.toCamelCase() }}(options);
}
{%- elif method.serverStreaming %}
Expand Down Expand Up @@ -426,8 +425,7 @@ export class {{ service.name }}Client {
callback = optionsOrCallback;
optionsOrCallback = {};
}
let options = optionsOrCallback as gax.CallOptions;
{{ util.buildHeaderRequestParam(method) }}
const options = optionsOrCallback as gax.CallOptions;
return this._innerApiCalls.{{ method.name.toCamelCase() }}(null, options, callback);
}
{%- endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,7 @@ export class EchoClient {
callback = optionsOrCallback;
optionsOrCallback = {};
}
let options = optionsOrCallback as gax.CallOptions;
options = options || {};
const options = optionsOrCallback as gax.CallOptions;
return this._innerApiCalls.collect(null, options, callback);
}

Expand All @@ -402,7 +401,6 @@ export class EchoClient {
chat(
options?: gax.CallOptions):
gax.CancellableStream{
options = options || {};
return this._innerApiCalls.chat(options);
}

Expand Down

0 comments on commit 3043372

Please sign in to comment.