diff --git a/src/dbnode/storage/index/convert/convert.go b/src/dbnode/storage/index/convert/convert.go index a79fc9c2dd..a6178b3ac9 100644 --- a/src/dbnode/storage/index/convert/convert.go +++ b/src/dbnode/storage/index/convert/convert.go @@ -191,7 +191,7 @@ func FromSeriesIDAndTagIter(id ident.ID, tags ident.TagIterator) (doc.Metadata, } // FromSeriesIDAndEncodedTags converts the provided series id and encoded tags into a doc.Metadata. -func FromSeriesIDAndEncodedTags(id ident.ID, encodedTags ts.EncodedTags) (doc.Metadata, error) { +func FromSeriesIDAndEncodedTags(id ident.BytesID, encodedTags ts.EncodedTags) (doc.Metadata, error) { var ( byteOrder = serialize.ByteOrder total = len(encodedTags) diff --git a/src/dbnode/storage/index/convert/convert_benchmark_test.go b/src/dbnode/storage/index/convert/convert_benchmark_test.go index 2f93341b89..90781ed7ac 100644 --- a/src/dbnode/storage/index/convert/convert_benchmark_test.go +++ b/src/dbnode/storage/index/convert/convert_benchmark_test.go @@ -34,12 +34,12 @@ import ( ) type idWithEncodedTags struct { - id ident.ID + id ident.BytesID encodedTags []byte } type idWithTags struct { - id ident.ID + id ident.BytesID tags ident.Tags } diff --git a/src/dbnode/storage/index/convert/convert_test.go b/src/dbnode/storage/index/convert/convert_test.go index 005d932110..8aa6c727d8 100644 --- a/src/dbnode/storage/index/convert/convert_test.go +++ b/src/dbnode/storage/index/convert/convert_test.go @@ -208,7 +208,7 @@ func TestFromSeriesIDAndEncodedTags(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - seriesID := ident.StringID(tt.id) + seriesID := ident.BytesID(tt.id) d, err := convert.FromSeriesIDAndEncodedTags(seriesID, encodedTags) assert.NoError(t, err) assertContentsMatch(t, seriesID, tags.Values(), d) @@ -257,7 +257,7 @@ func TestFromSeriesIDAndEncodedTagsInvalid(t *testing.T) { encodedTags: []byte{117, 39, 1, 0, 0, 0, 3, 0, 98, 97, 122}, }, } - seriesID := ident.StringID("foo") + seriesID := ident.BytesID("foo") for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {