mirror of
https://github.com/minio/minio.git
synced 2025-01-23 20:53:18 -05:00
fix: prevCertificate save not correct in loop (#17744)
fix certs save not correct Co-authored-by: guozhi.li <guozhi.li@daocloud.io>
This commit is contained in:
parent
7057d00a28
commit
f9d029c8fa
@ -126,8 +126,8 @@ func NewWithConfig(config Config) (KMS, error) {
|
||||
if config.Certificate == nil || config.ReloadCertEvents == nil {
|
||||
return
|
||||
}
|
||||
var prevCertificate tls.Certificate
|
||||
for {
|
||||
var prevCertificate tls.Certificate
|
||||
certificate, ok := <-config.ReloadCertEvents
|
||||
if !ok {
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user