-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix(workflows/syncer/v2): addresses nil checks and startup #19519
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
Conversation
|
👋 MStreet3, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
| } | ||
|
|
||
| w.contractReader = reader | ||
| close(initDoneCh) |
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.
only close initDoneCh if the reader is initialized, otherwise the context is canceled and the waiting routines will stop.
| } | ||
| w.lggr.Debugw("read from don received channel while waiting to start reconciliation sync") | ||
| don, _ := w.workflowDonNotifier.WaitForDon(ctx) | ||
| don, err := w.workflowDonNotifier.WaitForDon(ctx) |
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.
should never happen, but handling error now by passing it to client provided hook with default noop implementation
|




PR :
nilcontractReaderwhen starting sync after a successful close ofinitDoneChyeterrorwaiting for DONeventChin V2HealthReportRequires
Supports