Skip to content

Commit

Permalink
fix: fix some comments (#12417)
Browse files Browse the repository at this point in the history
Signed-off-by: stayweek <jiangtengtao@outlook.com>
Co-authored-by: J Stickler <julie.stickler@grafana.com>
  • Loading branch information
stayweek and JStickler committed Apr 1, 2024
1 parent a207206 commit 420169a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/pkg/logentry/stages/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ type CriConfig struct {
MaxPartialLineSizeTruncate bool `mapstructure:"max_partial_line_size_truncate"`
}

// validateDropConfig validates the DropConfig for the dropStage
// validateCriConfig validates the CriConfig for the cri stage
func validateCriConfig(cfg *CriConfig) error {
if cfg.MaxPartialLines == 0 {
cfg.MaxPartialLines = MaxPartialLinesSize
Expand Down
4 changes: 2 additions & 2 deletions clients/pkg/logentry/stages/limit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var testNonAppLogLine = `

var plName = "testPipeline"

// TestLimitPipeline is used to verify we properly parse the yaml config and create a working pipeline
// TestLimitWaitPipeline is used to verify we properly parse the yaml config and create a working pipeline
func TestLimitWaitPipeline(t *testing.T) {
registry := prometheus.NewRegistry()
pl, err := NewPipeline(util_log.Logger, loadConfig(testLimitWaitYaml), &plName, registry)
Expand All @@ -78,7 +78,7 @@ func TestLimitWaitPipeline(t *testing.T) {
assert.Equal(t, out[0].Line, testMatchLogLineApp1)
}

// TestLimitPipeline is used to verify we properly parse the yaml config and create a working pipeline
// TestLimitDropPipeline is used to verify we properly parse the yaml config and create a working pipeline
func TestLimitDropPipeline(t *testing.T) {
registry := prometheus.NewRegistry()
pl, err := NewPipeline(util_log.Logger, loadConfig(testLimitDropYaml), &plName, registry)
Expand Down

0 comments on commit 420169a

Please sign in to comment.