Skip to content

Commit

Permalink
use mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz834 committed Nov 10, 2022
1 parent a93a607 commit 82842c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/nss.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type nsswitchConfig struct {
ch chan struct{} // guards lastChecked and modTime
lastChecked time.Time // last time nsswitch.conf was checked

mu sync.RWMutex // protects nssConf
mu sync.Mutex // protects nssConf
nssConf *nssConf
}

Expand Down

0 comments on commit 82842c1

Please sign in to comment.