-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add more warning's to nats subscription factory #1907
Conversation
@HHongSeungWoo can you review this PR, please? |
warnings.warn( | ||
"`idle_heartbeat` option can be used with JetStream (Pull/Push) - only.", | ||
RuntimeWarning, | ||
stacklevel=4, | ||
) | ||
|
||
if flow_control is not None: | ||
warnings.warn( | ||
"`flow_control` option can be used with JetStream (Pull/Push) - only.", | ||
RuntimeWarning, | ||
stacklevel=4, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that these options only apply to push based consumers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, fixed
@kumaranvpl can you proofread and polish warnings text, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lancetnik Will proofread it tomorrow morning
Description
Please include a summary of the change and specify which issue is being addressed. Additionally, provide relevant motivation and context.
Fixes #1899
Type of change
Please delete options that are not relevant.
Checklist
scripts/lint.sh
shows no errors)scripts/test-cov.sh
scripts/static-analysis.sh