Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 53e316f

Browse files
replaywoodsaj
andcommitted
Update mdata/chunk/spans.go
Co-Authored-By: Anthony Woods <awoods@grafana.com>
1 parent aca9ef7 commit 53e316f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mdata/chunk/spans.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func init() {
4848
// SpanOfChunk takes a chunk and tries to determine its span.
4949
// It returns 0 if it failed to determine the span, this could fail
5050
// either because the given chunk is invalid or because it has an old format
51-
func SpanOfChunk(chunk []byte) uint32 {
51+
func ExtractChunkSpan(chunk []byte) uint32 {
5252
if len(chunk) < 2 {
5353
return 0
5454
}

store/cassandra/cassandra.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func (c *CassandraStore) insertChunk(key string, t0, ttl uint32, data []byte) er
355355
return nil
356356
}
357357

358-
span := chunk.SpanOfChunk(data)
358+
span := chunk.ExtractChunkSpan(data)
359359
if span == 0 {
360360
span = mdata.MaxChunkSpan()
361361
}

0 commit comments

Comments
 (0)