From fffcfa6e814fd3e2128cb67125bcabcdabc2df31 Mon Sep 17 00:00:00 2001 From: Davor Kapsa Date: Mon, 5 Oct 2020 22:24:27 +0200 Subject: [PATCH] fix some misspells (#2725) --- cmd/logcli/main.go | 2 +- pkg/logcli/query/query_test.go | 4 ++-- pkg/logentry/stages/drop.go | 2 +- pkg/storage/stores/shipper/compactor/table.go | 2 +- pkg/storage/stores/shipper/uploads/table_test.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/logcli/main.go b/cmd/logcli/main.go index 8daaf7fa5b33..e8289c0503cf 100644 --- a/cmd/logcli/main.go +++ b/cmd/logcli/main.go @@ -293,7 +293,7 @@ func newQuery(instant bool, cmd *kingpin.CmdClause) *query.Query { cmd.Flag("include-label", "Include labels given the provided key during output.").StringsVar(&q.ShowLabelsKey) cmd.Flag("labels-length", "Set a fixed padding to labels").Default("0").IntVar(&q.FixedLabelsLen) cmd.Flag("store-config", "Execute the current query using a configured storage from a given Loki configuration file.").Default("").StringVar(&q.LocalConfig) - cmd.Flag("colored-output", "Show ouput with colored labels").Default("false").BoolVar(&q.ColoredOutput) + cmd.Flag("colored-output", "Show output with colored labels").Default("false").BoolVar(&q.ColoredOutput) return q } diff --git a/pkg/logcli/query/query_test.go b/pkg/logcli/query/query_test.go index 49a4be61bab7..e9f7025e3a2f 100644 --- a/pkg/logcli/query/query_test.go +++ b/pkg/logcli/query/query_test.go @@ -169,7 +169,7 @@ func Test_batch(t *testing.T) { Entries: []logproto.Entry{ logproto.Entry{Timestamp: time.Unix(1, 0), Line: "line1"}, logproto.Entry{Timestamp: time.Unix(2, 0), Line: "line2"}, - logproto.Entry{Timestamp: time.Unix(3, 0), Line: "line3"}, // End timestmap is exclusive + logproto.Entry{Timestamp: time.Unix(3, 0), Line: "line3"}, // End timestamp is exclusive }, }, }, @@ -193,7 +193,7 @@ func Test_batch(t *testing.T) { Entries: []logproto.Entry{ logproto.Entry{Timestamp: time.Unix(1, 0), Line: "line1"}, logproto.Entry{Timestamp: time.Unix(2, 0), Line: "line2"}, - logproto.Entry{Timestamp: time.Unix(3, 0), Line: "line3"}, // End timestmap is exclusive + logproto.Entry{Timestamp: time.Unix(3, 0), Line: "line3"}, // End timestamp is exclusive }, }, }, diff --git a/pkg/logentry/stages/drop.go b/pkg/logentry/stages/drop.go index f8ad8398b078..101620eadf76 100644 --- a/pkg/logentry/stages/drop.go +++ b/pkg/logentry/stages/drop.go @@ -221,7 +221,7 @@ func (m *dropStage) Process(labels model.LabelSet, extracted map[string]interfac // Everything matched, drop the line if Debug { - level.Debug(m.logger).Log("msg", "all critera met, line will be dropped") + level.Debug(m.logger).Log("msg", "all criteria met, line will be dropped") } // Adds the drop label to not be sent by the api.EntryHandler labels[dropLabel] = model.LabelValue(*m.cfg.DropReason) diff --git a/pkg/storage/stores/shipper/compactor/table.go b/pkg/storage/stores/shipper/compactor/table.go index 7f4a9181f8db..4fe0cbb64228 100644 --- a/pkg/storage/stores/shipper/compactor/table.go +++ b/pkg/storage/stores/shipper/compactor/table.go @@ -91,7 +91,7 @@ func (t *table) compact() error { readObjectChan := make(chan string) n := util.Min(len(objects), readDBsParallelism) - // read files parallely + // read files parallelly for i := 0; i < n; i++ { go func() { var err error diff --git a/pkg/storage/stores/shipper/uploads/table_test.go b/pkg/storage/stores/shipper/uploads/table_test.go index 8b0dbf9c3745..ff1fae12bd95 100644 --- a/pkg/storage/stores/shipper/uploads/table_test.go +++ b/pkg/storage/stores/shipper/uploads/table_test.go @@ -379,7 +379,7 @@ func TestTable_ImmutableUploads(t *testing.T) { boltDBIndexClient.Stop() }() - // shardCutoff is calulated based on when shards are considered to not be active anymore and are safe to be uploaded. + // shardCutoff is calculated based on when shards are considered to not be active anymore and are safe to be uploaded. shardCutoff := getOldestActiveShardTime() // some dbs to setup