fix: network be blocked when ldap timeout

This commit is contained in:
Daniel Ding
2024-04-09 20:12:46 +08:00
parent d83e4588d6
commit a0be72a58f

2
pkg/cache/user.go vendored
View File

@@ -243,8 +243,6 @@ func (w *user) SetLdap(cfg *libol.LDAPConfig) error {
} }
func (w *user) SetCert(cfg *libol.CertConfig) { func (w *user) SetCert(cfg *libol.CertConfig) {
w.Lock.Lock()
defer w.Lock.Unlock()
w.Cert = cfg.Crt w.Cert = cfg.Crt
} }