mirror of
https://github.com/metosin/reitit.git
synced 2026-02-15 07:45:17 +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]
|
[io.pedestal.interceptor.chain :as chain]
|
||||||
[reitit.http]
|
[reitit.http]
|
||||||
[reitit.interceptor])
|
[reitit.interceptor])
|
||||||
(:import (java.lang.reflect Method)
|
(:import (java.lang.reflect Method)))
|
||||||
(reitit.interceptor Executor)))
|
|
||||||
|
|
||||||
;; TODO: variadic
|
;; TODO: variadic
|
||||||
(defn- arities [f]
|
(defn- arities [f]
|
||||||
|
|
@ -46,7 +45,7 @@
|
||||||
|
|
||||||
(def pedestal-executor
|
(def pedestal-executor
|
||||||
(reify
|
(reify
|
||||||
Executor
|
reitit.interceptor/Executor
|
||||||
(queue [_ interceptors]
|
(queue [_ interceptors]
|
||||||
(->> interceptors
|
(->> interceptors
|
||||||
(map (fn [{::interceptor/keys [handler] :as interceptor}]
|
(map (fn [{::interceptor/keys [handler] :as interceptor}]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue