-
Notifications
You must be signed in to change notification settings - Fork 140
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
Documentation needed (PublishWithContext
does not use context)
#195
Comments
Hello, thanks for using this library and RabbitMQ. You can see in #96 where the contexts were added, and #140 for where their use was removed. If you think that was the wrong decision, please start a discussion here. In the future, use |
This should be documented and not require people to code spelunking. |
@nemith please take the time to add the relevant documentation via a PR. We would appreciate it. |
Re-opening because the current API has confused users. We can only change it in 2.0, however, so documentation is necessary. |
PublishWithContext
does not use context)
Regarding this issue, I think it is fixable without a 2.0, if we do the following
Since the right function already exists, we may have "get out of jail free card" for this. I may try for a PR if the idea seems good. Thoughts? |
@laurentb-roy I like your proposal. We intended to add context to all channel function in #124, however, we encountered other challenges along the way, see #124 (comment) and #124 (comment) Happy to review a contribution with the proposed actions. |
The context was not honoured in any of the *WithContext functions. This is confusing, and arguably broken. However, we cannot immediately fix the context-support situation due to #124 (comment) This commit undeprecates the non-context variants of publish, and documents that both variants are equivalent. The example now favours the non-context variants. Related to #195 Signed-off-by: Aitor Perez Cedres <[email protected]>
The context was not honoured in any of the *WithContext functions. This is confusing, and arguably broken. However, we cannot immediately fix the context-support situation due to #124 (comment) This commit undeprecates the non-context variants of publish, and documents that both variants are equivalent. The example now favours the non-context variants. Related to #195 Signed-off-by: Aitor Perez Cedres <[email protected]>
I've opened a PR to address this issue, based on the feedback from @laurentb-roy. Anyone is welcome to provide any comments in the PR #259 |
The context was not honoured in any of the *WithContext functions. This is confusing, and arguably broken. However, we cannot immediately fix the context-support situation due to #124 (comment) This commit undeprecates the non-context variants of publish, and documents that both variants are equivalent. The example now favours the non-context variants. Related to #195 Signed-off-by: Aitor Perez Cedres <[email protected]>
The context was not honoured in any of the *WithContext functions. This is confusing, and arguably broken. However, we cannot immediately fix the context-support situation due to #124 (comment) This commit undeprecates the non-context variants of publish, and documents that both variants are equivalent. The example now favours the non-context variants. Related to #195 Signed-off-by: Aitor Perez Cedres <[email protected]>
Describe the bug
I'm not sure if I'm blind or something, but looking at the function
PublishWithContext
I can't see where it uses the context? it callsch.PublishWithDeferredConfirmWithContext
and inside it just checkif ctx == nil
, after that it does not use the ctx. What am I missing? (Version1.8.1
)Reproduction steps
none
Expected behavior
Honor context cancellation signals
Additional context
No response
The text was updated successfully, but these errors were encountered: