-
Notifications
You must be signed in to change notification settings - Fork 337
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: catch route failure and trigger retry #149
Conversation
Codecov Report
@@ Coverage Diff @@
## master #149 +/- ##
==========================================
- Coverage 36.27% 34.60% -1.68%
==========================================
Files 28 28
Lines 1257 1312 +55
==========================================
- Hits 456 454 -2
- Misses 771 828 +57
Partials 30 30
Continue to review full report at Codecov.
|
pkg/seven/state/solver.go
Outdated
} | ||
|
||
func WaitWorkerGroup(id string, resultChan chan CRDStatus) (string, error) { | ||
for { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your code can be simplified to one line, since the select only has one arm.
r := <-resultChan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure the e2e case can run.
e0593db
to
f00c2db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix: #148