Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass through options to grpc client creation. #113

Merged
merged 5 commits into from
Feb 22, 2017
Merged

Conversation

jmuk
Copy link
Contributor

@jmuk jmuk commented Feb 21, 2017

@jmuk jmuk requested a review from landrito February 21, 2017 23:17
lib/grpc.js Outdated
return new CreateStub(serviceAddress, credentials);
var grpcOptions = {};
Object.keys(options).forEach(function(key) {
if (key.indexOf('grpc.') == 0) {

This comment was marked as spam.

This comment was marked as spam.

lib/grpc.js Outdated
@@ -148,7 +148,8 @@ GrpcClient.prototype.constructSettings = function constructSettings(
* @param {number} port - The port of the service.

This comment was marked as spam.

This comment was marked as spam.

@codecov-io
Copy link

codecov-io commented Feb 22, 2017

Codecov Report

Merging #113 into master will increase coverage by 1.19%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
+ Coverage   91.08%   92.27%   +1.19%     
==========================================
  Files          11       11              
  Lines        1279     1282       +3     
  Branches      257      257              
==========================================
+ Hits         1165     1183      +18     
+ Misses        114       99      -15
Impacted Files Coverage Δ
lib/grpc.js 78.57% <100%> (+29.51%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b666370...86eccf8. Read the comment docs.

@jmuk
Copy link
Contributor Author

jmuk commented Feb 22, 2017

PTAL

Copy link
Contributor

@landrito landrito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One nit.

test/grpc.js Outdated
combineChannelCredentials: sinon.stub(),
createFromGoogleCredential: sinon.stub()
}};
var dummyAuth = {authData: 'dummy'};

This comment was marked as spam.

This comment was marked as spam.

@jmuk jmuk merged commit 2dedafe into googleapis:master Feb 22, 2017
@jmuk jmuk deleted the grpc branch March 15, 2017 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants