-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[scan-9] Update enumeration logic #3626
Conversation
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.
Looks good - just one question about naming.
@@ -103,6 +103,30 @@ type SourceUnitEnumerator interface { | |||
Enumerate(ctx context.Context, reporter UnitReporter) error | |||
} | |||
|
|||
// BaseUnitReporter is a helper struct that implements the UnitReporter interface | |||
// and includes a JobProgress reference. | |||
type baseUnitReporter struct { |
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.
What makes this a "base" unit reporter?
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.
the passed-in reporter gets wrapped into this, and so this reporter becomes the parent. 'base' made sense in that respect.
Added functionality to enumerate Source with Unit information. Renamed older functions to reflect new functionality.
Checklist:
make test-community
)?make lint
this requires golangci-lint)?