@@ -74,7 +74,7 @@ func startParserRoutines(ctx context.Context, g *errgroup.Group, cConfig *csconf
7474 log .WithField ("idx" , idx ).Info ("Starting parser routine" )
7575 g .Go (func () error {
7676 defer trace .CatchPanic ("crowdsec/runParse/" + strconv .Itoa (idx ))
77- runParse (ctx , inputLineChan , inputEventChan , * parsers .Ctx , parsers .Nodes )
77+ runParse (ctx , logLines , inEvents , * parsers .Ctx , parsers .Nodes )
7878 return nil
7979 })
8080 }
@@ -85,7 +85,7 @@ func startBucketRoutines(ctx context.Context, g *errgroup.Group, cConfig *csconf
8585 log .WithField ("idx" , idx ).Info ("Starting bucket routine" )
8686 g .Go (func () error {
8787 defer trace .CatchPanic ("crowdsec/runPour/" + strconv .Itoa (idx ))
88- runPour (ctx , inputEventChan , holders , buckets , cConfig )
88+ runPour (ctx , inEvents , holders , buckets , cConfig )
8989 return nil
9090 })
9191 }
@@ -101,7 +101,7 @@ func startOutputRoutines(ctx context.Context, cConfig *csconfig.Config, parsers
101101 log .WithField ("idx" , idx ).Info ("Starting output routine" )
102102 outputsTomb .Go (func () error {
103103 defer trace .CatchPanic ("crowdsec/runOutput/" + strconv .Itoa (idx ))
104- return runOutput (ctx , inputEventChan , outputEventChan , buckets , * parsers .PovfwCtx , parsers .Povfwnodes , apiClient )
104+ return runOutput (ctx , inEvents , outEvents , buckets , * parsers .PovfwCtx , parsers .Povfwnodes , apiClient )
105105 })
106106 }
107107}
@@ -135,8 +135,8 @@ func startLPMetrics(ctx context.Context, cConfig *csconfig.Config, apiClient *ap
135135
136136// runCrowdsec starts the log processor service
137137func runCrowdsec (ctx context.Context , g * errgroup.Group , cConfig * csconfig.Config , parsers * parser.Parsers , hub * cwhub.Hub , datasources []acquisition.DataSource ) error {
138- inputEventChan = make (chan pipeline.Event )
139- inputLineChan = make (chan pipeline.Event )
138+ inEvents = make (chan pipeline.Event )
139+ logLines = make (chan pipeline.Event )
140140
141141 startParserRoutines (ctx , g , cConfig , parsers )
142142 startBucketRoutines (ctx , g , cConfig )
@@ -156,7 +156,7 @@ func runCrowdsec(ctx context.Context, g *errgroup.Group, cConfig *csconfig.Confi
156156
157157 log .Info ("Starting processing data" )
158158
159- if err := acquisition .StartAcquisition (ctx , dataSources , inputLineChan , & acquisTomb ); err != nil {
159+ if err := acquisition .StartAcquisition (ctx , dataSources , logLines , & acquisTomb ); err != nil {
160160 return fmt .Errorf ("starting acquisition error: %w" , err )
161161 }
162162
0 commit comments