Skip to content

[FIXED] Use timeout from JetStreamContext if no deadline is set on ctx #1909

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

Merged
merged 1 commit into from
Jul 25, 2025

Conversation

piotrpio
Copy link
Collaborator

Legacy JetStream API calls could block indefinitely if nats.Context was used without deadline. This PR changes this so that a timeout from JetStreamContext will be used instead.

Signed-off-by: Piotr Piotrowski piotr@synadia.com

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@coveralls
Copy link

Coverage Status

coverage: 84.824% (+0.07%) from 84.758%
when pulling 3bd15a8 on fix-watcher-timeout
into 0fc96b1 on main.

@piotrpio piotrpio requested a review from Jarema July 24, 2025 14:13
Copy link
Member

@wallyqs wallyqs 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 9743171 into main Jul 25, 2025
7 checks passed
@wallyqs wallyqs deleted the fix-watcher-timeout branch July 25, 2025 00:38
@piotrpio piotrpio mentioned this pull request Jul 29, 2025
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.

3 participants