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

js: Add note on ephemeral consumers and Subscribe #782

Closed
wants to merge 2 commits into from

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Jul 28, 2021

Add some notes on ephemeral consumers being the default.

@wallyqs wallyqs requested a review from kozlovic July 28, 2021 17:07
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM except for minor typo.

js.go Outdated
@@ -952,6 +952,10 @@ func (opt subOptFn) configureSubscribe(opts *subOpts) error {
}

// Subscribe will create a subscription to the appropriate stream and consumer.
// By default, it will automatically create an JetStream consumer in the server in case
Copy link
Member

Choose a reason for hiding this comment

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

an->a in an JetStream consumer.

// By default, it will automatically create an JetStream consumer in the server in case
// one cannot be found. Unless the `Durable` option is passed, the consumer will be
// ephemeral and automatically cleaned up by the server if the client that created
// the consumer goes away.
Copy link
Member

Choose a reason for hiding this comment

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

Correct, but then the library is still trying to delete on Unsusbcribe(), so we will have to address that.

js.go Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Jul 28, 2021

Coverage Status

Coverage decreased (-0.02%) to 86.847% when pulling c3f278f on update-godoc into 2b2bb8f on master.

@kozlovic
Copy link
Member

Closing in favor of PR #794

@kozlovic kozlovic closed this Aug 15, 2021
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.

None yet

3 participants