@@ -392,7 +392,7 @@ func (h *Head) loadWAL(r *wal.Reader, multiRef map[uint64]uint64) (err error) {
392392 series , created := h .getOrCreateWithID (s .Ref , s .Labels .Hash (), s .Labels )
393393
394394 if ! created {
395- // There's already a different Ref for this series.
395+ // There's already a different ref for this series.
396396 multiRefLock .Lock ()
397397 multiRef [s .Ref ] = series .ref
398398 multiRefLock .Unlock ()
@@ -1691,7 +1691,7 @@ func (s *memSeries) chunksMetas() []chunks.Meta {
16911691}
16921692
16931693// reset re-initialises all the variable in the memSeries except 'lset', 'ref',
1694- // and 'chunkRange', like how it would appear after 'newmemSeries (...)'.
1694+ // and 'chunkRange', like how it would appear after 'newMemSeries (...)'.
16951695func (s * memSeries ) reset () {
16961696 s .chunks = nil
16971697 s .headChunk = nil
@@ -1702,7 +1702,7 @@ func (s *memSeries) reset() {
17021702 s .app = nil
17031703}
17041704
1705- // Appendable checks whether the given sample is valid for appending to the series.
1705+ // appendable checks whether the given sample is valid for appending to the series.
17061706func (s * memSeries ) appendable (t int64 , v float64 ) error {
17071707 c := s .head ()
17081708 if c == nil {
@@ -1735,7 +1735,7 @@ func (s *memSeries) chunkID(pos int) int {
17351735 return pos + s .firstChunkID
17361736}
17371737
1738- // TruncateChunksBefore removes all chunks from the series that have not timestamp
1738+ // truncateChunksBefore removes all chunks from the series that have not timestamp
17391739// at or after mint. Chunk IDs remain unchanged.
17401740func (s * memSeries ) truncateChunksBefore (mint int64 ) (removed int ) {
17411741 var k int
@@ -1756,7 +1756,7 @@ func (s *memSeries) truncateChunksBefore(mint int64) (removed int) {
17561756 return k
17571757}
17581758
1759- // Append adds the sample (t, v) to the series.
1759+ // append adds the sample (t, v) to the series.
17601760func (s * memSeries ) append (t int64 , v float64 ) (success , chunkCreated bool ) {
17611761 // Based on Gorilla white papers this offers near-optimal compression ratio
17621762 // so anything bigger that this has diminishing returns and increases
0 commit comments