@@ -433,7 +433,7 @@ func TestChunkEncodingRoundTrip(t *testing.T) {
433433 } {
434434 t .Run (fmt .Sprintf ("version %d nChks %d pageSize %d" , version , nChks , pageSize ), func (t * testing.T ) {
435435 chks := mkChks (nChks )
436- var w Writer
436+ var w Creator
437437 w .Version = version
438438 primary := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
439439 scratch := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
@@ -583,7 +583,7 @@ func TestSearchWithPageMarkers(t *testing.T) {
583583 },
584584 } {
585585 t .Run (fmt .Sprintf ("%s-pagesize-%d" , tc .desc , pageSize ), func (t * testing.T ) {
586- var w Writer
586+ var w Creator
587587 w .Version = FormatV3
588588 primary := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
589589 scratch := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
@@ -697,7 +697,7 @@ func TestDecoderChunkStats(t *testing.T) {
697697 },
698698 } {
699699 t .Run (fmt .Sprintf ("%s_version=%d_pageSize=%d" , tc .desc , version , pageSize ), func (t * testing.T ) {
700- var w Writer
700+ var w Creator
701701 w .Version = version
702702 primary := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
703703 scratch := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
@@ -722,7 +722,7 @@ func BenchmarkChunkStats(b *testing.B) {
722722 from , through := int64 (nChks * 40 / 100 ), int64 (nChks * 60 / 100 )
723723 for _ , version := range []int {FormatV2 , FormatV3 } {
724724 b .Run (fmt .Sprintf ("version %d/%d chunks" , version , nChks ), func (b * testing.B ) {
725- var w Writer
725+ var w Creator
726726 w .Version = version
727727 primary := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
728728 scratch := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
@@ -747,7 +747,7 @@ func BenchmarkReadChunks(b *testing.B) {
747747 from , through := int64 (nChks * 40 / 100 ), int64 (nChks * 60 / 100 )
748748 for _ , version := range []int {FormatV2 , FormatV3 } {
749749 b .Run (fmt .Sprintf ("version %d/%d chunks" , version , nChks ), func (b * testing.B ) {
750- var w Writer
750+ var w Creator
751751 w .Version = version
752752 primary := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
753753 scratch := encoding .EncWrap (tsdb_enc.Encbuf {B : make ([]byte , 0 )})
0 commit comments