summaryrefslogtreecommitdiffhomepage
path: root/net/dns/manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'net/dns/manager.go')
-rw-r--r--net/dns/manager.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/dns/manager.go b/net/dns/manager.go
index de99fe646..5170d0b78 100644
--- a/net/dns/manager.go
+++ b/net/dns/manager.go
@@ -15,7 +15,6 @@ import (
"runtime"
"slices"
"strings"
- "sync"
"sync/atomic"
"time"
@@ -65,8 +64,8 @@ type Manager struct {
knobs *controlknobs.Knobs // or nil
goos string // if empty, gets set to runtime.GOOS
- mu sync.Mutex // guards following
- config *Config // Tracks the last viable DNS configuration set by Set. nil on failures other than compilation failures or if set has never been called.
+ mu syncs.Mutex // guards following
+ config *Config // Tracks the last viable DNS configuration set by Set. nil on failures other than compilation failures or if set has never been called.
}
// NewManagers created a new manager from the given config.
@@ -95,6 +94,7 @@ func NewManager(logf logger.Logf, oscfg OSConfigurator, health *health.Tracker,
knobs: knobs,
goos: goos,
}
+ syncs.RegisterMutex(&m.mu, "dns.Manager.mu")
m.ctx, m.ctxCancel = context.WithCancel(context.Background())
m.logf("using %T", m.os)