Skip to content

Commit

Permalink
Update js.go
Browse files Browse the repository at this point in the history
Co-authored-by: Waldemar Quevedo <wally@synadia.com>
  • Loading branch information
matthiashanel and wallyqs committed May 25, 2021
1 parent 2a09729 commit 9322734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js.go
Expand Up @@ -187,7 +187,8 @@ func (nc *Conn) jetStream(opts ...JSOpt) (*js, error) {
}

// BindJetStream returns a JetStreamContext for messaging and stream management that will NOT create
// underlying objects like stream or durable. It assumes they exist already.
// underlying objects like stream or durable on Subscribe. It assumes they exist already and that
// the JetStream context is bound to another account via an import with limited permissions for example.
// This will also disable the use of ephemeral consumer.
func (nc *Conn) BindJetStream(opts ...JSOpt) (JetStreamContext, error) {
js, err := nc.jetStream(opts...)
Expand Down

0 comments on commit 9322734

Please sign in to comment.