mirror of
https://github.com/metosin/reitit.git
synced 2026-01-12 09:59:51 +00:00
refactor: Reify protocol instead of interface
This commit is contained in:
parent
2597d14125
commit
e3180e4d6a
1 changed files with 2 additions and 3 deletions
|
|
@ -4,8 +4,7 @@
|
|||
[io.pedestal.interceptor.chain :as chain]
|
||||
[reitit.http]
|
||||
[reitit.interceptor])
|
||||
(:import (java.lang.reflect Method)
|
||||
(reitit.interceptor Executor)))
|
||||
(:import (java.lang.reflect Method)))
|
||||
|
||||
;; TODO: variadic
|
||||
(defn- arities [f]
|
||||
|
|
@ -46,7 +45,7 @@
|
|||
|
||||
(def pedestal-executor
|
||||
(reify
|
||||
Executor
|
||||
reitit.interceptor/Executor
|
||||
(queue [_ interceptors]
|
||||
(->> interceptors
|
||||
(map (fn [{::interceptor/keys [handler] :as interceptor}]
|
||||
|
|
|
|||
Loading…
Reference in a new issue