Skip to content

Commit

Permalink
Fix typo in file name and return early in DeserializeToSeriesGroup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Sep 11, 2024
1 parent 57e6ddd commit 55fe162
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ func PutTimeSeriesBinary(ts *TimeSeriesBinary) {
// DeserializeToSeriesGroup transforms a buffer to a SeriesGroup and converts the stringmap + indexes into actual Labels.
func DeserializeToSeriesGroup(sg *SeriesGroup, buf []byte) (*SeriesGroup, []byte, error) {
buffer, err := sg.UnmarshalMsg(buf)
if err != nil {
return sg, nil, err
}
// Need to fill in the labels.
for _, series := range sg.Series {
if cap(series.Labels) < len(series.LabelsNames) {
Expand Down

0 comments on commit 55fe162

Please sign in to comment.