no need to lock a bool
parent
1604d7f604
commit
09d4a4e2d7
|
@ -124,8 +124,6 @@ func NewServer() *Server {
|
||||||
|
|
||||||
// SetAuthenticationEnabled turns on or off server authentication
|
// SetAuthenticationEnabled turns on or off server authentication
|
||||||
func (s *Server) SetAuthenticationEnabled(enabled bool) {
|
func (s *Server) SetAuthenticationEnabled(enabled bool) {
|
||||||
s.mu.Lock()
|
|
||||||
defer s.mu.Unlock()
|
|
||||||
s.authenticationEnabled = enabled
|
s.authenticationEnabled = enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue