Minor typo fixes (#1545)

Signed-off-by: Joe Elliott <number101010@gmail.com>
pull/1548/head
Joe Elliott 6 years ago committed by Cyril Tovena
parent 366e06f587
commit d3972852ee
  1. 2
      pkg/chunkenc/memchunk.go
  2. 2
      pkg/logql/engine.go
  3. 2
      pkg/storage/store.go

@ -634,7 +634,7 @@ func (si *bufferedIterator) moveNext() (int64, []byte, bool) {
lineSize := int(l)
if lineSize >= maxLineLength {
si.err = fmt.Errorf("line too long %d, maximun %d", lineSize, maxLineLength)
si.err = fmt.Errorf("line too long %d, maximum %d", lineSize, maxLineLength)
return 0, nil, false
}
// If the buffer is not yet initialize or too small, we get a new one.

@ -47,7 +47,7 @@ func (Streams) String() string {
type EngineOpts struct {
// Timeout for queries execution
Timeout time.Duration `yaml:"timeout"`
// MaxLookBackPeriod is the maximun amount of time to look back for log lines.
// MaxLookBackPeriod is the maximum amount of time to look back for log lines.
// only used for instant log queries.
MaxLookBackPeriod time.Duration `yaml:"max_look_back_period"`
}

@ -26,7 +26,7 @@ type Config struct {
// RegisterFlags adds the flags required to configure this flag set.
func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
cfg.Config.RegisterFlags(f)
f.IntVar(&cfg.MaxChunkBatchSize, "max-chunk-batch-size", 50, "The maximun of chunks to fetch per batch.")
f.IntVar(&cfg.MaxChunkBatchSize, "max-chunk-batch-size", 50, "The maximum number of chunks to fetch per batch.")
}
// Store is the Loki chunk store to retrieve and save chunks.

Loading…
Cancel
Save