d***@juxt.pro
2017-01-24 17:00:40 UTC
I seem to have got myself into a slightly confusing situation building
something similar to
(defn connect-mypubsub
[pubsub output]
(manifold.stream/connect
(manifold.bus/subscribe pubsub :event)
(manifold.stream/buffer 50 output)
{:timeout 300}))
(def output (manifold.stream/stream))
(connect-mypubsub (:event-queue system) output)
This is a version of my code, where pubsub is created via
(manifold.bus/event-bus)
For some reason, this causes an Exception like so:
java.lang.IllegalArgumentException: cannot convert manifold.stream.
SourceProxy to sink
clojure.lang.Compiler$CompilerException: java.lang.IllegalArgumentException:
cannot convert manifold.stream.SourceProxy to sink, compiling:(app/event.clj
:31:1)
Any advice on what I am doing wrong? I think I've narrowed it down to this
snippet, but I'm not sure why it doesn't work:
(s/->sink (s/buffer 50 output))
Thanks,
Dominic
something similar to
(defn connect-mypubsub
[pubsub output]
(manifold.stream/connect
(manifold.bus/subscribe pubsub :event)
(manifold.stream/buffer 50 output)
{:timeout 300}))
(def output (manifold.stream/stream))
(connect-mypubsub (:event-queue system) output)
This is a version of my code, where pubsub is created via
(manifold.bus/event-bus)
For some reason, this causes an Exception like so:
java.lang.IllegalArgumentException: cannot convert manifold.stream.
SourceProxy to sink
clojure.lang.Compiler$CompilerException: java.lang.IllegalArgumentException:
cannot convert manifold.stream.SourceProxy to sink, compiling:(app/event.clj
:31:1)
Any advice on what I am doing wrong? I think I've narrowed it down to this
snippet, but I'm not sure why it doesn't work:
(s/->sink (s/buffer 50 output))
Thanks,
Dominic
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.