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

Allow reusing CircuitBreakerManualControl across multiple CBs #1375

Merged
merged 5 commits into from
Jun 30, 2023

Conversation

martintmk
Copy link
Contributor

@martintmk martintmk commented Jun 30, 2023

Details on the issue fix or feature implementation

I don't see any reason why this shouldn't be allowed.

Additionally, don't throw unnecessary. The user can isolate the manual control even before and the CB will be isolated once it's attached.

Contributes to #1365

Confirm the following

  • I started this PR by branching from the head of the default branch
  • I have targeted the PR to merge into the default branch
  • I have included unit tests for the issue/feature
  • I have successfully run a local build

@martintmk martintmk added the v8 Issues related to the new version 8 of the Polly library. label Jun 30, 2023
@martintmk martintmk added this to the v8.0.0 milestone Jun 30, 2023
@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Merging #1375 (6b5ff97) into main (70129e2) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1375      +/-   ##
==========================================
- Coverage   83.61%   83.60%   -0.02%     
==========================================
  Files         268      267       -1     
  Lines        6403     6397       -6     
  Branches     1004     1002       -2     
==========================================
- Hits         5354     5348       -6     
  Misses        840      840              
  Partials      209      209              
Flag Coverage Δ
macos 83.60% <100.00%> (-0.02%) ⬇️
windows 83.60% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...Core/CircuitBreaker/CircuitBreakerManualControl.cs 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

@martintmk martintmk enabled auto-merge (squash) June 30, 2023 13:31
@martintmk martintmk merged commit 94fcd21 into main Jun 30, 2023
@martintmk martintmk deleted the mtomka/reuse-cb-manualcontrol branch June 30, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 Issues related to the new version 8 of the Polly library.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants