Skip to content

Commit

Permalink
feat(structured-metadata-api): remove loop
Browse files Browse the repository at this point in the history
  • Loading branch information
svennergr committed Jul 2, 2024
1 parent b04222c commit a612718
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/querier/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -1179,13 +1179,8 @@ func (q *SingleTenantQuerier) StructuredMetadata(ctx context.Context, req *logpr

structuredMetadata := parseStructuredMetadata(ctx, streams)

keys := make([]string, len(structuredMetadata))
for k, v := range structuredMetadata {
keys[k] = v
}

return &logproto.StructuredMetadataKeysResponse{
Keys: keys,
Keys: structuredMetadata,
}, nil
}

Expand Down

0 comments on commit a612718

Please sign in to comment.