mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
Use GetDuration() helper for MINIO_KMS_KEY_CACHE_INTERVAL as time.Duration (#19512)
Bonus: Use default duration of 10 seconds if invalid input < time.Second is specified
This commit is contained in:
+1
-2
@@ -958,8 +958,7 @@ func handleKMSConfig() {
|
||||
}
|
||||
}
|
||||
|
||||
kmsLogger := Logger{}
|
||||
KMS, err := kms.NewWithConfig(kmsConf, kmsLogger)
|
||||
KMS, err := kms.NewWithConfig(kmsConf, KMSLogger{})
|
||||
if err != nil {
|
||||
logger.Fatal(err, "Unable to initialize a connection to KES as specified by the shell environment")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user