Skip to content

Commit

Permalink
chore: remove minor dead code that was missed in a PR review (#15094)
Browse files Browse the repository at this point in the history
Signed-off-by: Callum Styan <callumstyan@gmail.com>
  • Loading branch information
cstyan authored Nov 25, 2024
1 parent 10b7478 commit 1ea49e3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pkg/logql/log/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (n *noopPipeline) ForStream(labels labels.Labels) StreamPipeline {
}
n.mu.RUnlock()

sp := &noopStreamPipeline{n.baseBuilder.ForLabels(labels, h), make([]int, 0, 10)}
sp := &noopStreamPipeline{n.baseBuilder.ForLabels(labels, h)}

n.mu.Lock()
defer n.mu.Unlock()
Expand All @@ -93,8 +93,7 @@ func IsNoopPipeline(p Pipeline) bool {
}

type noopStreamPipeline struct {
builder *LabelsBuilder
offsetsBuf []int
builder *LabelsBuilder
}

func (n noopStreamPipeline) ReferencedStructuredMetadata() bool {
Expand Down Expand Up @@ -181,13 +180,12 @@ func NewPipeline(stages []Stage) Pipeline {
}

type streamPipeline struct {
stages []Stage
builder *LabelsBuilder
offsetsBuf []int
stages []Stage
builder *LabelsBuilder
}

func NewStreamPipeline(stages []Stage, labelsBuilder *LabelsBuilder) StreamPipeline {
return &streamPipeline{stages, labelsBuilder, make([]int, 0, 10)}
return &streamPipeline{stages, labelsBuilder}
}

func (p *pipeline) ForStream(labels labels.Labels) StreamPipeline {
Expand Down

0 comments on commit 1ea49e3

Please sign in to comment.