From f3b924e5a8a5007cceaa6fe8efbabb17c0603fe2 Mon Sep 17 00:00:00 2001 From: Kenneth Jenkins <51246568+kenjenkins@users.noreply.github.com> Date: Tue, 1 Aug 2023 09:26:35 -0700 Subject: [PATCH] autocert: update cache method invocation The method CacheUnmanagedTLSCertificate() now returns a certificate hash in addition to an error value. --- internal/autocert/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/autocert/manager.go b/internal/autocert/manager.go index eca3a2f4c..4b3285542 100644 --- a/internal/autocert/manager.go +++ b/internal/autocert/manager.go @@ -150,7 +150,7 @@ func (mgr *Manager) getCertMagicConfig(ctx context.Context, cfg *config.Config) } // add existing certs to the cache, and staple OCSP for _, cert := range certs { - if err := mgr.certmagic.CacheUnmanagedTLSCertificate(ctx, cert, nil); err != nil { + if _, err := mgr.certmagic.CacheUnmanagedTLSCertificate(ctx, cert, nil); err != nil { return nil, fmt.Errorf("config: failed caching cert: %w", err) } }