File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import (
1010 "time"
1111
1212 "github.com/caddyserver/certmagic"
13- "github.com/julienschmidt/httprouter"
1413 "github.com/sirupsen/logrus"
1514 "github.com/tylerb/graceful"
1615 "github.com/xyproto/env/v2"
@@ -31,12 +30,6 @@ func AtShutdown(shutdownFunction func()) {
3130 shutdownFunctions = append (shutdownFunctions , shutdownFunction )
3231}
3332
34- func adaptHTTPHandlerFunc (h http.HandlerFunc ) httprouter.Handle {
35- return func (w http.ResponseWriter , r * http.Request , _ httprouter.Params ) {
36- h (w , r )
37- }
38- }
39-
4033// NewGracefulServer creates a new graceful server configuration
4134func (ac * Config ) NewGracefulServer (handler http.Handler , http2support bool , addr string ) * graceful.Server {
4235 // Server configuration
You can’t perform that action at this time.
0 commit comments