-
Notifications
You must be signed in to change notification settings - Fork 285
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
Remove HandleReadModuleError
#2585
Remove HandleReadModuleError
#2585
Conversation
The logic is instead inlined because it's a core decision that Syncer should make.
// If this func returns `LookbackDecisionCodeStop` for `ReadModuleErrorCodeModuleNotFound`, the | ||
// syncer will stop looking when reaching the commit `u`, will select `v` as the start sync point, | ||
// and the synced commits into the BSR will be [x, y, z]. | ||
HandleReadModuleError(err *ReadModuleError) LookbackDecisionCode | ||
// InvalidBSRSyncPoint is invoked by Syncer upon encountering a module's branch sync point that is |
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.
How is this error different than the ones when reading a module? Do you see this being customizable by some CLI flag?
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.
Nah I want to kill this, too. Initially all of this came because we were logging a warning in the CLI and the suggestion was made that Syncer shouldn't do this, but this is a core part of Syncer now.
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 one blocker comment
The logic is instead inlined because it's a core decision that Syncer should make.