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) shards := make([]pipeUnpackJSONProcessorShard, workersCount)
pup := &pipeUnpackJSONProcessor{ pup := &pipeUnpackJSONProcessor{
pu: pu, pu: pu,
stopCh: stopCh,
ppBase: ppBase, ppBase: ppBase,
shards: shards, shards: shards,
@ -52,7 +51,6 @@ func (pu *pipeUnpackJSON) newPipeProcessor(workersCount int, stopCh <-chan struc
type pipeUnpackJSONProcessor struct { type pipeUnpackJSONProcessor struct {
pu *pipeUnpackJSON pu *pipeUnpackJSON
stopCh <-chan struct{}
ppBase pipeProcessor ppBase pipeProcessor
shards []pipeUnpackJSONProcessorShard shards []pipeUnpackJSONProcessorShard