From e7f4eaf6c42b9334866ae182ca4befccb36f72a8 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 23 May 2022 14:04:31 -0700 Subject: [PATCH] Remove explicit deprecation notice This will avoid linter errors on other projects for now. --- acme/api/handler.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/acme/api/handler.go b/acme/api/handler.go index 96e22d85..2e3931b1 100644 --- a/acme/api/handler.go +++ b/acme/api/handler.go @@ -83,7 +83,9 @@ type handler struct { // this route adds will add a new middleware that will set the ACME components // on the context. // -// Deprecated: use api.Route(r api.Router) +// Note: this method is deprecated in step-ca, other applications can still use +// this to support ACME, but the recommendation is to use use +// api.Route(api.Router) and acme.NewContext() instead. func (h *handler) Route(r api.Router) { client := acme.NewClient() linker := acme.NewLinker(h.opts.DNS, h.opts.Prefix) @@ -101,7 +103,9 @@ func (h *handler) Route(r api.Router) { // NewHandler returns a new ACME API handler. // -// Deprecated: use api.Route(r api.Router) +// Note: this method is deprecated in step-ca, other applications can still use +// this to support ACME, but the recommendation is to use use +// api.Route(api.Router) and acme.NewContext() instead. func NewHandler(opts HandlerOptions) api.RouterHandler { return &handler{ opts: &opts,