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

broker: Send return error can be context aware. #115

Merged
merged 5 commits into from
Aug 12, 2024

Conversation

peteski22
Copy link

@peteski22 peteski22 commented Aug 11, 2024

Improvement:

When the Broker performs a Send and decides what the returned error should look like, we can include the state of the context (context.Err()) at that moment and allow getError to decide if context information needs to be included in the return.

This allows callers to understand why the Broker may have ended processing early.

Change:

This PR also updates the required version of Go from 1.16 to 1.20 as we now use errors.Join added in 1.20. Updates are made to the go.mod and CI files and a go mod tidy performed.

It also updates the GHA for checkout and go-version.

@peteski22 peteski22 added enhancement New feature or request improvement labels Aug 11, 2024
@peteski22 peteski22 marked this pull request as ready for review August 11, 2024 20:37
@peteski22 peteski22 merged commit 0b0d547 into main Aug 12, 2024
2 checks passed
@peteski22 peteski22 deleted the peteski22/broker/get-error-context-aware branch August 12, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants