Ignore more checklocks false positives.

This commit is contained in:
Joachim Bauch 2026-02-12 10:29:43 +01:00
commit 5da3d601fe
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
3 changed files with 5 additions and 5 deletions

View file

@ -293,7 +293,7 @@ type deadlockMonitorReceiver struct {
monitor *Monitor // +checklocksignore: Only written to from constructor.
mu sync.RWMutex
wg sync.WaitGroup
wg sync.WaitGroup // +checklocksignore: Only written to from constructor.
// +checklocks:mu
entry *MonitorEntry

View file

@ -110,13 +110,13 @@ var (
defaultFederationTimeoutSeconds = 10
// New connections have to send a "Hello" request after 2 seconds.
initialHelloTimeout = 2 * time.Second
initialHelloTimeout = 2 * time.Second // +checklocksignore: Global readonly variable.
// Anonymous clients have to join a room after 10 seconds.
anonmyousJoinRoomTimeout = 10 * time.Second
anonmyousJoinRoomTimeout = 10 * time.Second // +checklocksignore: Global readonly variable.
// Sessions expire 30 seconds after the connection closed.
sessionExpireDuration = 30 * time.Second
sessionExpireDuration = 30 * time.Second // +checklocksignore: Global readonly variable.
// Run housekeeping jobs once per second
housekeepingInterval = time.Second

View file

@ -48,7 +48,7 @@ type configStatic struct {
mu sync.Mutex
proxy McuProxy
dnsMonitor *dns.Monitor
dnsMonitor *dns.Monitor // +checklocksignore: Only written to from constructor.
// +checklocks:mu
dnsDiscovery bool