Skip to content

Commit 2fd9b44

Browse files
committed
This resolves an issue AOT'ing when using https://github.com/griffinbank/rules_clojure
1 parent 82bd84b commit 2fd9b44

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/manifold/stream.clj

+2-6
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,6 @@
297297
([^IEventSource source default-val ^double timeout timeout-val]
298298
(.take source default-val false timeout timeout-val)))
299299

300-
;;;
301-
302-
(require '[manifold.stream.graph])
303-
304300
(defn connect
305301
"Connects a source to a sink, propagating all messages from the former into the latter.
306302
@@ -331,7 +327,7 @@
331327
connector (.connector ^IEventSource source sink)]
332328
(if connector
333329
(connector source sink options)
334-
(manifold.stream.graph/connect source sink options))
330+
((requiring-resolve 'manifold.stream.graph/connect) source sink options))
335331
nil)))
336332

337333
;;;
@@ -866,7 +862,7 @@
866862
(isSynchronous [_]
867863
false)
868864
(downstream [this]
869-
(manifold.stream.graph/downstream this))
865+
((requiring-resolve 'manifold.stream.graph/downstream) this))
870866
(close [_]
871867
(.close ^IEventStream buf))
872868
(description [_]

src/manifold/stream/core.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
(alterMeta [_ f# args#]
8787
(manifold.utils/with-lock* ~'lock
8888
(set! ~'__mta (apply f# ~'__mta args#))))
89-
(~'downstream [this#] (manifold.stream.graph/downstream this#))
89+
(~'downstream [this#] ((requiring-resolve 'manifold.stream.graph/downstream) this#))
9090
(~'weakHandle [this# ref-queue#]
9191
(manifold.utils/with-lock ~'lock
9292
(or ~'__weakHandle

src/manifold/stream/queue.clj

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{:no-doc true}
33
(:require
44
[clj-commons.primitive-math :as p]
5-
[manifold.stream.graph :as g]
65
[manifold.deferred :as d]
76
[manifold.stream.core :as s]
87
[manifold.utils :as utils])
@@ -11,7 +10,6 @@
1110
AtomicReference]
1211
[java.util.concurrent
1312
BlockingQueue
14-
LinkedBlockingQueue
1513
TimeUnit]))
1614

1715
(s/def-source BlockingQueueSource

0 commit comments

Comments
 (0)