fix some misspells (#2725)

pull/2695/head^2
Davor Kapsa 5 years ago committed by GitHub
parent 356e2765ff
commit fffcfa6e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/logcli/main.go
  2. 4
      pkg/logcli/query/query_test.go
  3. 2
      pkg/logentry/stages/drop.go
  4. 2
      pkg/storage/stores/shipper/compactor/table.go
  5. 2
      pkg/storage/stores/shipper/uploads/table_test.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
}

@ -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
},
},
},

@ -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)

@ -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

@ -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

Loading…
Cancel
Save