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

Add missing pub-sub samples #503

Merged
merged 2 commits into from
Oct 24, 2017
Merged

Add missing pub-sub samples #503

merged 2 commits into from
Oct 24, 2017

Conversation

ace-n
Copy link
Contributor

@ace-n ace-n commented Oct 24, 2017

As requested by @jabubake

@ace-n ace-n requested a review from jmdobry October 24, 2017 00:57
@codecov
Copy link

codecov bot commented Oct 24, 2017

Codecov Report

Merging #503 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #503   +/-   ##
=======================================
  Coverage   97.16%   97.16%           
=======================================
  Files          13       13           
  Lines         458      458           
=======================================
  Hits          445      445           
  Misses         13       13

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 14d6460...a81b5fb. Read the comment docs.

@@ -84,6 +84,32 @@ function createSubscription (topicName, subscriptionName) {
}
// [END pubsub_create_subscription]

// [START pubsub_subscriber_flow_settings]
function createFlowControlledSubscription (topicName, subscriptionName, maxInProgress, maxBytes) {
Copy link
Member

Choose a reason for hiding this comment

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

I guess the Pub/Sub samples were never updated to hide the method definition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct - I can address that in a separate PR, if you'd like.

Copy link
Member

Choose a reason for hiding this comment

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

Yes please

console.log(`Subscription ${subscription.name} created with a maximum of ${maxInProgress} unprocessed messages.`);

return subscription;
});
Copy link
Member

Choose a reason for hiding this comment

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

And weren't updated to handle errors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct - see above comment.

@ace-n ace-n merged commit 8532458 into master Oct 24, 2017
@ace-n ace-n deleted the pubsub-missing branch October 24, 2017 20:19
NimJay pushed a commit that referenced this pull request Nov 11, 2022
ace-n pushed a commit that referenced this pull request Nov 11, 2022
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.

2 participants