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

fix: properly cancel token passed to AsyncEventingBasicConsumer receiver #1789

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Andersso
Copy link

@lukebakken lukebakken self-requested a review February 21, 2025 15:44
@lukebakken lukebakken self-assigned this Feb 21, 2025
@lukebakken lukebakken added this to the 7.1.1 milestone Feb 21, 2025
@@ -136,6 +136,7 @@ public IEnumerable<string> ConsumerTags
public int ChannelNumber => InnerChannel.ChannelNumber;

public ShutdownEventArgs? CloseReason => InnerChannel.CloseReason;
public CancellationTokenSource ShutdownCts => InnerChannel.ShutdownCts;

Choose a reason for hiding this comment

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

I think IChannel should expose the token at max, not the writable source.

But there may be cleaner ways to pass this value. The calling function doesn't have cancellation either, and that is the usual way to pass something like that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for taking a look. Yes, I plan on modifying this PR when I get time to work on it.

@lukebakken lukebakken modified the milestones: 7.1.1, 7.2.0 Feb 24, 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