This commit is contained in:
Aliaksandr Valialkin 2024-05-19 21:28:11 +02:00
parent 030d3823b9
commit d5b2af1ae0
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -37,12 +37,11 @@ func (pu *pipeUnpackJSON) updateNeededFields(neededFields, unneededFields fields
}
}
func (pu *pipeUnpackJSON) newPipeProcessor(workersCount int, stopCh <-chan struct{}, _ func(), ppBase pipeProcessor) pipeProcessor {
func (pu *pipeUnpackJSON) newPipeProcessor(workersCount int, _ <-chan struct{}, _ func(), ppBase pipeProcessor) pipeProcessor {
shards := make([]pipeUnpackJSONProcessorShard, workersCount)
pup := &pipeUnpackJSONProcessor{
pu: pu,
stopCh: stopCh,
ppBase: ppBase,
shards: shards,
@ -52,7 +51,6 @@ func (pu *pipeUnpackJSON) newPipeProcessor(workersCount int, stopCh <-chan struc
type pipeUnpackJSONProcessor struct {
pu *pipeUnpackJSON
stopCh <-chan struct{}
ppBase pipeProcessor
shards []pipeUnpackJSONProcessorShard