Skip to content

Commit

Permalink
filtering: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Aug 29, 2023
1 parent 758242b commit 24cfccf
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions internal/filtering/filtering.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,15 @@ type DNSFilter struct {
rulesStorageAllow *filterlist.RuleStorage
filteringEngineAllow *urlfilter.DNSEngine

// Config contains filtering parameters. For direct access by library
// users, even a = assignment.
//
// TODO(d.kolyshev): Remove this embed.
Config

// confLock protects Config.
confLock sync.RWMutex

safeSearch SafeSearch

// safeBrowsingChecker is the safe browsing hash-prefix checker.
Expand All @@ -250,11 +259,6 @@ type DNSFilter struct {

engineLock sync.RWMutex

// TODO(d.kolyshev): !! Check if this lock should be used.
Config // for direct access by library users, even a = assignment
// confLock protects Config.
confLock sync.RWMutex

// Channel for passing data to filters-initializer goroutine
filtersInitializerChan chan filtersInitializerParams
filtersInitializerLock sync.Mutex
Expand Down

0 comments on commit 24cfccf

Please sign in to comment.