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: Remove JS timeout which got moved to JS context #647

Merged
merged 1 commit into from Feb 1, 2021

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Feb 1, 2021

Signed-off-by: Waldemar Quevedo wally@synadia.com

Signed-off-by: Waldemar Quevedo <wally@synadia.com>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 87.272% when pulling 6a8ae59 on wallyqs:js-fix into 5b49249 on nats-io:master.

@@ -839,14 +834,6 @@ func Timeout(t time.Duration) Option {
}
}

// JetStreamTimeout is an Option to set the timeout for access to the JetStream API
func JetStreamTimeout(t time.Duration) Option {
Copy link
Member

Choose a reason for hiding this comment

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

I use this one, what is it replaced with?

Copy link
Member Author

Choose a reason for hiding this comment

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

Right now to be able to update the default JS API timeout, it has to be specified when creating the context, not when creating the connection for example:

nc.JetStream(nats.MaxWait(5*time.Second))

Copy link
Member

Choose a reason for hiding this comment

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

That is the way I use it.. So that is good.

@derekcollison derekcollison self-requested a review February 1, 2021 22:19
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@wallyqs wallyqs merged commit 34a261e into nats-io:master Feb 1, 2021
@wallyqs wallyqs deleted the js-fix branch February 1, 2021 22:23
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