From b9a6e38d45d487ee23ee9d0945139ca34eeeaf1d Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Wed, 25 Sep 2024 14:57:14 +0200 Subject: [PATCH] Remove yoloString usage Signed-off-by: Arve Knudsen --- pkg/mimirpb/timeseries.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mimirpb/timeseries.go b/pkg/mimirpb/timeseries.go index 875bba87abc..2c18e69665b 100644 --- a/pkg/mimirpb/timeseries.go +++ b/pkg/mimirpb/timeseries.go @@ -351,7 +351,7 @@ func (bs *LabelAdapter) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - bs.Name = yoloString(dAtA[iNdEx:postIndex]) + bs.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -382,7 +382,7 @@ func (bs *LabelAdapter) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - bs.Value = yoloString(dAtA[iNdEx:postIndex]) + bs.Value = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex