diff --git a/pkg/server/options/encryptionconfig/config.go b/pkg/server/options/encryptionconfig/config.go index 82b245a7a..4413ace2f 100644 --- a/pkg/server/options/encryptionconfig/config.go +++ b/pkg/server/options/encryptionconfig/config.go @@ -135,7 +135,7 @@ func (h *kmsPluginProbe) Check() error { h.l.Lock() defer h.l.Unlock() - if (time.Now().Sub(h.lastResponse.received)) < kmsPluginHealthzTTL { + if (time.Since(h.lastResponse.received)) < kmsPluginHealthzTTL { return h.lastResponse.err }