Skip to content

Commit

Permalink
Clean up sync filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ferglor committed Jul 19, 2024
1 parent 64fe028 commit 933194d
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (p *logEventProvider) Start(context.Context) error {
for {
select {
case <-ticker.C:
if err := p.syncBufferFilters(); err != nil {
if err := p.buffer.SyncFilters(p.filterStore); err != nil {
p.lggr.Warnw("failed to sync buffer filters", "err", err)
}
case <-ctx.Done():
Expand Down Expand Up @@ -500,10 +500,3 @@ func (p *logEventProvider) readLogs(ctx context.Context, latest int64, filters [

return merr
}

func (p *logEventProvider) syncBufferFilters() error {
p.lock.RLock()
defer p.lock.RUnlock()

return p.buffer.SyncFilters(p.filterStore)
}

0 comments on commit 933194d

Please sign in to comment.