Skip to content

Commit

Permalink
Improve durable consumer unsubscribe comment (#1100)
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
  • Loading branch information
sylr committed Oct 6, 2022
1 parent 1ee76ea commit 2b03e25
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js.go
Expand Up @@ -67,9 +67,11 @@ type JetStream interface {
// gone.
// * If Durable() option is specified, the library will attempt to lookup a JetStream
// consumer with this name, and if found, will bind to it and not attempt to
// delete it. However, if not found, the library will send a request to create
// such durable JetStream consumer. The library will delete the JetStream consumer
// after an Unsubscribe() or Drain().
// delete it. However, if not found, the library will send a request to
// create such durable JetStream consumer. Note that the library will delete
// the JetStream consumer after an Unsubscribe() or Drain() only if it
// created the durable consumer while subscribing. If the durable consumer
// already existed prior to subscribing it won't be deleted.
// * If Bind() option is provided, the library will attempt to lookup the
// consumer with the given name, and if successful, bind to it. If the lookup fails,
// then the Subscribe() call will return an error.
Expand Down

0 comments on commit 2b03e25

Please sign in to comment.