Don't end non-owned span

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen 2023-11-09 17:17:36 +01:00
parent e1e64f36c2
commit d1c7983f22

View file

@ -152,7 +152,6 @@ func (p *postingsForMatcherPromise) result(ctx context.Context) (index.Postings,
func (c *PostingsForMatchersCache) postingsForMatchersPromise(ctx context.Context, ix IndexPostingsReader, ms []*labels.Matcher) func(context.Context) (index.Postings, error) {
span := trace.SpanFromContext(ctx)
defer span.End()
promise := &postingsForMatcherPromise{
done: make(chan struct{}),