Skip to content

Commit f2d2ec8

Browse files
committed
use a better workaround for Compojure, fixes #424
1 parent 9f886bd commit f2d2ec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/src/aleph/examples/http.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
;; deferred, we extend Compojure's `Renderable` protocol to pass the deferred
5353
;; through unchanged so it can be handled asynchronously.
5454
(extend-protocol Renderable
55-
manifold.deferred.IDeferred
56-
(render [d _] d))
55+
clojure.lang.IDeref
56+
(render [d _] (d/->deferred d)))
5757

5858
(defn delayed-hello-world-handler
5959
"Alternately, we can use a [core.async](https://github.com/clojure/core.async) goroutine to

0 commit comments

Comments
 (0)