Get module name at runtime, and tidy up modules

This commit is contained in:
Matthew Holt 2019-07-12 10:15:27 -06:00
parent b780f0f49b
commit ccb5d19c25
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
4 changed files with 9 additions and 12 deletions

View file

@ -20,8 +20,8 @@ import (
"os"
"time"
"github.com/caddyserver/caddy/modules/caddyhttp"
"github.com/caddyserver/caddy/v2"
"github.com/caddyserver/caddy/v2/modules/caddyhttp"
)
func init() {

View file

@ -28,8 +28,8 @@ import (
"sync/atomic"
"time"
"github.com/caddyserver/caddy/modules/caddyhttp"
"github.com/caddyserver/caddy/v2"
"github.com/caddyserver/caddy/v2/modules/caddyhttp"
)
// CircuitBreaker defines the functionality of a circuit breaker module.