Skip to content

Commit

Permalink
fixed race condition counting lists of domains
Browse files Browse the repository at this point in the history
Removed the number of loaded lists of domains, that caused a race
condition and added no value. It was only used for debugging
purposes.
gustavo-iniguez-goya committed Jul 7, 2021
1 parent 5e56e90 commit 8580281
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions daemon/rule/operator_lists.go
Original file line number Diff line number Diff line change
@@ -11,13 +11,9 @@ import (
"time"
)

var (
count = 0
)

func (o *Operator) monitorLists() {
count++
log.Info("monitor lists started: %s, %d", o.Data, count)
log.Info("monitor lists started: %s", o.Data)

modTimes := make(map[string]time.Time)
totalFiles := 0
needReload := false

0 comments on commit 8580281

Please sign in to comment.