From 096ceca44f79a6f6ba9e31f7e5695d84d1cca330 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Thu, 13 Jul 2023 21:53:40 +0800 Subject: [PATCH] remove repetitive words (#12556) Signed-off-by: cui fliter --- model/histogram/float_histogram.go | 2 +- promql/value.go | 2 +- tsdb/ooo_head_read.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/model/histogram/float_histogram.go b/model/histogram/float_histogram.go index 2ced090167..782b07df6f 100644 --- a/model/histogram/float_histogram.go +++ b/model/histogram/float_histogram.go @@ -421,7 +421,7 @@ func addBucket( // receiving histogram, but a pointer to it is returned for convenience. // // The ideal value for maxEmptyBuckets depends on circumstances. The motivation -// to set maxEmptyBuckets > 0 is the assumption that is is less overhead to +// to set maxEmptyBuckets > 0 is the assumption that is less overhead to // represent very few empty buckets explicitly within one span than cutting the // one span into two to treat the empty buckets as a gap between the two spans, // both in terms of storage requirement as well as in terms of encoding and diff --git a/promql/value.go b/promql/value.go index f59a25112b..1b2a9d221d 100644 --- a/promql/value.go +++ b/promql/value.go @@ -214,7 +214,7 @@ func (s Sample) MarshalJSON() ([]byte, error) { return json.Marshal(h) } -// Vector is basically only an an alias for []Sample, but the contract is that +// Vector is basically only an alias for []Sample, but the contract is that // in a Vector, all Samples have the same timestamp. type Vector []Sample diff --git a/tsdb/ooo_head_read.go b/tsdb/ooo_head_read.go index 8030fc367f..2d683b545a 100644 --- a/tsdb/ooo_head_read.go +++ b/tsdb/ooo_head_read.go @@ -137,7 +137,7 @@ func (oh *OOOHeadIndexReader) series(ref storage.SeriesRef, builder *labels.Scra // chunks Meta the first chunk that overlaps with others. // Example chunks of a series: 5:(100, 200) 6:(500, 600) 7:(150, 250) 8:(550, 650) // In the example 5 overlaps with 7 and 6 overlaps with 8 so we only want to - // to return chunk Metas for chunk 5 and chunk 6e + // return chunk Metas for chunk 5 and chunk 6e *chks = append(*chks, tmpChks[0]) maxTime := tmpChks[0].MaxTime // Tracks the maxTime of the previous "to be merged chunk". for _, c := range tmpChks[1:] {