Skip to content

Commit

Permalink
fix some misspells (#2725)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvrkps authored Oct 5, 2020
1 parent 356e276 commit fffcfa6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/logcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/logcli/query/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
},
},
Expand All @@ -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
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/logentry/stages/drop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/stores/shipper/compactor/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/stores/shipper/uploads/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fffcfa6

Please sign in to comment.