This commit is contained in:
Aliaksandr Valialkin 2024-05-11 08:06:33 +02:00
parent 8f6b1262df
commit a55e01e406
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -99,8 +99,8 @@ func (s *Storage) RunQuery(ctx context.Context, tenantIDs []TenantID, q *Query,
for i := len(q.pipes) - 1; i >= 0; i-- {
p := q.pipes[i]
ctxChild, cancel := context.WithCancel(ctx)
stopCh = ctxChild.Done()
pp = p.newPipeProcessor(workersCount, stopCh, cancel, pp)
stopCh = ctxChild.Done()
ctx = ctxChild
cancels[i] = cancel