From 8f01326468ee9c791409bb5fd71e7a89b44737c4 Mon Sep 17 00:00:00 2001 From: Miccah Date: Fri, 9 Feb 2024 18:17:46 -0800 Subject: [PATCH] [chore] Rename file to legacy_reporters.go (#2406) --- pkg/sources/{chan_reporter.go => legacy_reporters.go} | 3 +++ 1 file changed, 3 insertions(+) rename pkg/sources/{chan_reporter.go => legacy_reporters.go} (85%) diff --git a/pkg/sources/chan_reporter.go b/pkg/sources/legacy_reporters.go similarity index 85% rename from pkg/sources/chan_reporter.go rename to pkg/sources/legacy_reporters.go index 56adad83fff9..15c3c806e3f9 100644 --- a/pkg/sources/chan_reporter.go +++ b/pkg/sources/legacy_reporters.go @@ -23,6 +23,9 @@ func (ChanReporter) ChunkErr(ctx context.Context, err error) error { var _ UnitReporter = (*VisitorReporter)(nil) +// VisitorReporter is a UnitReporter that will call the provided callbacks for +// finding units and reporting errors. VisitErr is optional; if unset it will +// log the error. type VisitorReporter struct { VisitUnit func(context.Context, SourceUnit) error VisitErr func(context.Context, error) error