load_shed: make constructor for Overloaded error public#661
Merged
hawkw merged 3 commits intotower-rs:masterfrom Jun 13, 2022
mattklein123:overloaded-public
Merged
load_shed: make constructor for Overloaded error public#661hawkw merged 3 commits intotower-rs:masterfrom mattklein123:overloaded-public
hawkw merged 3 commits intotower-rs:masterfrom
mattklein123:overloaded-public
Conversation
This allows for mocking. This also matches what is done for the timeout Elapsed error. Signed-off-by: Matt Klein <[email protected]>
Contributor
Author
|
Any chance of getting this reviewed/merged? Thank you! |
LucioFranco
approved these changes
Jun 10, 2022
Member
LucioFranco
left a comment
There was a problem hiding this comment.
Sorry for the delay on this! I was out on vacation :D
Generally, we don't want to expose these constructors but we already do this for the Elapsed error in the timeout layer so I am fine with merging this.
hawkw
approved these changes
Jun 10, 2022
Member
hawkw
left a comment
There was a problem hiding this comment.
This seems fine to me.
In general, we try to avoid exposing error type constructors when they're not necessary, as it poses a forward-compatibilty issue (we may want to add additional data to the error in the future), but in this case, it seems pretty unlikely, and if it's useful for testing, we may as well make it public.
Signed-off-by: Matt Klein <[email protected]>
Contributor
Author
|
Awesome thank you for the merge! |
hawkw
pushed a commit
that referenced
this pull request
Jun 17, 2022
This allows for mocking. This also matches what is done for the timeout Elapsed error. Signed-off-by: Matt Klein <[email protected]>
hawkw
pushed a commit
that referenced
this pull request
Jun 17, 2022
This allows for mocking. This also matches what is done for the timeout Elapsed error. Signed-off-by: Matt Klein <[email protected]>
hawkw
added a commit
that referenced
this pull request
Jun 17, 2022
# 0.4.13 (June 17, 2022) ### Added - **load_shed**: Public constructor for `Overloaded` error ([#661]) ### Fixed - **util**: Fix hang with `call_all` when the `Stream` of requests is pending ([#656]) - **ready_cache**: Ensure cancelation is observed by pending services ([#668], fixes [#415]) - **docs**: Fix a missing section header due to a typo ([#646]) - **docs**: Fix broken links to `Service` trait ([#659]) [#661]: #661 [#656]: #656 [#668]: #668 [#415]: #415 [#646]: #646 [#659]: #659
hawkw
added a commit
that referenced
this pull request
Jun 17, 2022
# 0.4.13 (June 17, 2022) ### Added - **load_shed**: Public constructor for `Overloaded` error ([#661]) ### Fixed - **util**: Fix hang with `call_all` when the `Stream` of requests is pending ([#656]) - **ready_cache**: Ensure cancelation is observed by pending services ([#668], fixes [#415]) - **docs**: Fix a missing section header due to a typo ([#646]) - **docs**: Fix broken links to `Service` trait ([#659]) [#661]: #661 [#656]: #656 [#668]: #668 [#415]: #415 [#646]: #646 [#659]: #659
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows for mocking. This also matches what is done for
the timeout Elapsed error.
Signed-off-by: Matt Klein [email protected]