Live: array for Processor, Outputter and Subscriber in channel rule top level (#39677)

This commit is contained in:
Alexander Emelin
2021-10-06 20:43:25 +03:00
committed by GitHub
parent ed0c43b106
commit 5358c45a3a
46 changed files with 1276 additions and 716 deletions
@@ -2,6 +2,7 @@ package pipeline
import (
"context"
"fmt"
"sync"
"time"
@@ -65,7 +66,7 @@ func (s *CacheSegmentedTree) Get(orgID int64, channel string) (*LiveChannelRule,
if !ok {
err := s.fillOrg(orgID)
if err != nil {
return nil, false, err
return nil, false, fmt.Errorf("error filling org: %w", err)
}
}
s.radixMu.RLock()