···5353 case result := <-promise.Response:
5454 // convert FinalResponse -> QueryLabels_Output
5555 // Flatten your map into a slice
5656- var flatLabels []*comatprototypes.LabelDefs_Label
5656+ flatLabels := make([]*comatprototypes.LabelDefs_Label, 0)
5757 for _, submap := range result.Labels { // result.Labels is map[labelerDID]map[subjectURI][]*Label
5858 for _, labels := range submap {
5959 flatLabels = append(flatLabels, SliceToPtrSlice(labels)...)