all: use syncs.AtomicValue
Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
@ -63,8 +63,8 @@ const _RP_FORCE = 1 // Flag for RefreshPolicyEx
|
||||
type nrptRuleDatabase struct {
|
||||
logf logger.Logf
|
||||
watcher *gpNotificationWatcher
|
||||
isGPRefreshPending atomic.Value // of bool
|
||||
mu sync.Mutex // protects the fields below
|
||||
isGPRefreshPending atomic.Bool
|
||||
mu sync.Mutex // protects the fields below
|
||||
ruleIDs []string
|
||||
isGPDirty bool
|
||||
writeAsGP bool
|
||||
|
Reference in New Issue
Block a user