Skip to content

Commit

Permalink
Correct VisitKeepLabel typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jeschkies committed Nov 14, 2023
1 parent ff9fe4d commit 881759d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/logql/syntax/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ func (e *KeepLabelsExpr) String() string {

func (e *KeepLabelsExpr) Walk(f WalkFn) { f(e) }

func (e *KeepLabelsExpr) Accept(v RootVisitor) { v.VisitKeekLabel(e) }
func (e *KeepLabelsExpr) Accept(v RootVisitor) { v.VisitKeepLabel(e) }

func (*LineFmtExpr) isStageExpr() {}

Expand Down
2 changes: 1 addition & 1 deletion pkg/logql/syntax/serialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (v *JSONSerializer) VisitPipeline(e *PipelineExpr) {
func (*JSONSerializer) VisitDecolorize(*DecolorizeExpr) {}
func (*JSONSerializer) VisitDropLabels(*DropLabelsExpr) {}
func (*JSONSerializer) VisitJSONExpressionParser(*JSONExpressionParser) {}
func (*JSONSerializer) VisitKeekLabel(*KeepLabelsExpr) {}
func (*JSONSerializer) VisitKeepLabel(*KeepLabelsExpr) {}
func (*JSONSerializer) VisitLabelFilter(*LabelFilterExpr) {}
func (*JSONSerializer) VisitLabelFmt(*LabelFmtExpr) {}
func (*JSONSerializer) VisitLabelParser(*LabelParserExpr) {}
Expand Down
4 changes: 2 additions & 2 deletions pkg/logql/syntax/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type StageExprVisitor interface {
VisitDecolorize(*DecolorizeExpr)
VisitDropLabels(*DropLabelsExpr)
VisitJSONExpressionParser(*JSONExpressionParser)
VisitKeekLabel(*KeepLabelsExpr)
VisitKeepLabel(*KeepLabelsExpr)
VisitLabelFilter(*LabelFilterExpr)
VisitLabelFmt(*LabelFmtExpr)
VisitLabelParser(*LabelParserExpr)
Expand Down Expand Up @@ -112,7 +112,7 @@ func DispatchStageExpr(expr StageExpr, v StageExprVisitor) {
case *JSONExpressionParser:
v.VisitJSONExpressionParser(e)
case *KeepLabelsExpr:
v.VisitKeekLabel(e)
v.VisitKeepLabel(e)
case *LabelFilterExpr:
v.VisitLabelFilter(e)
case *LabelFmtExpr:
Expand Down

0 comments on commit 881759d

Please sign in to comment.