From d3972852eee55c8aeee1318d63dc902433d9894e Mon Sep 17 00:00:00 2001 From: Joe Elliott Date: Fri, 17 Jan 2020 14:35:17 -0500 Subject: [PATCH] Minor typo fixes (#1545) Signed-off-by: Joe Elliott --- pkg/chunkenc/memchunk.go | 2 +- pkg/logql/engine.go | 2 +- pkg/storage/store.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/chunkenc/memchunk.go b/pkg/chunkenc/memchunk.go index 5f997bdaf489..1e6d29461bf4 100644 --- a/pkg/chunkenc/memchunk.go +++ b/pkg/chunkenc/memchunk.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. diff --git a/pkg/logql/engine.go b/pkg/logql/engine.go index aa2945fb8df3..22afada71949 100644 --- a/pkg/logql/engine.go +++ b/pkg/logql/engine.go @@ -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"` } diff --git a/pkg/storage/store.go b/pkg/storage/store.go index c14ee623acba..9ac5faa3689a 100644 --- a/pkg/storage/store.go +++ b/pkg/storage/store.go @@ -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.