Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/cues/queue.clj
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,12 @@

(defn- alts
[tailers]
(reduce
(fn [_ t]
(some
(fn [t]
(when-let [msg (read t)]
(rm-watches t)
(reduced [t msg])))
nil
(doseq [t* tailers]
(rm-watches t*))
[t msg]))
tailers))

(defn alts!!
Expand Down Expand Up @@ -1651,10 +1651,10 @@
(send! graph nil msg))
([{p :processors
config :config} source msg]
(let [id (or source (:source config))
{:keys [type impl]
:as s} (get p id)]
(if (and s (= type ::source))
(let [id (or source (:source config))
{impl :impl
type :type} (get p id)]
(if (= type ::source)
(write (:appender @impl) msg)
(throw (ex-info "Could not find source" {:id id}))))))

Expand Down