diff options
author | Valery Piashchynski <[email protected]> | 2020-12-17 03:16:55 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-17 03:16:55 +0300 |
commit | 40cfd9f6b44dfe987bfbf010bf67b32abdc64208 (patch) | |
tree | 10e3c3cd0805619ac30533078eb7d2585877a1b3 /plugins/http/handler.go | |
parent | 9d5fe4f6a98b30fd73be8259f84fa595ac994a71 (diff) |
Now better
Diffstat (limited to 'plugins/http/handler.go')
-rw-r--r-- | plugins/http/handler.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/http/handler.go b/plugins/http/handler.go index 4cc08c41..57590bfd 100644 --- a/plugins/http/handler.go +++ b/plugins/http/handler.go @@ -10,9 +10,9 @@ import ( "github.com/hashicorp/go-multierror" "github.com/spiral/errors" + "github.com/spiral/roadrunner/v2/interfaces/events" "github.com/spiral/roadrunner/v2/interfaces/log" "github.com/spiral/roadrunner/v2/interfaces/pool" - "github.com/spiral/roadrunner/v2/interfaces/worker" ) const ( @@ -26,7 +26,7 @@ const ( const MB = 1024 * 1024 type Handle interface { - AddListener(l worker.EventListener) + AddListener(l events.EventListener) ServeHTTP(w http.ResponseWriter, r *http.Request) } @@ -75,7 +75,7 @@ type handler struct { log log.Logger pool pool.Pool mul sync.Mutex - lsn worker.EventListener + lsn events.EventListener } func NewHandler(maxReqSize uint64, uploads UploadsConfig, trusted Cidrs, pool pool.Pool) (Handle, error) { @@ -91,7 +91,7 @@ func NewHandler(maxReqSize uint64, uploads UploadsConfig, trusted Cidrs, pool po } // Listen attaches handler event controller. -func (h *handler) AddListener(l worker.EventListener) { +func (h *handler) AddListener(l events.EventListener) { h.mul.Lock() defer h.mul.Unlock() |