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 {
|
if config.Certificate == nil || config.ReloadCertEvents == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for {
|
|
||||||
var prevCertificate tls.Certificate
|
var prevCertificate tls.Certificate
|
||||||
|
for {
|
||||||
certificate, ok := <-config.ReloadCertEvents
|
certificate, ok := <-config.ReloadCertEvents
|
||||||
if !ok {
|
if !ok {
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user