We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tasks:
The text was updated successfully, but these errors were encountered:
So far:
(defmulti handle-msg "" (comp :type last vector)) (defmethod handle-msg :subscribed [state msg] (log/debug "Got SUBSCRIBED message.") (log/trace msg)) (defmethod handle-msg :heartbeat [state msg] (log/debug "Got HEARTBEAT message.") (log/trace msg)) (defmethod handle-msg :offers [state msg] (log/debug "Got OFFERS message.") (log/trace msg)) (defmethod handle-msg :default [state msg] (log/error "Unknown type ...") (log/trace msg))
These will be called (at least initially) in the following manner:
(defn read-stream [ch stream] (async/go-loop [] (async/put! ch (recordio/next! stream :json)) (recur))) (def response (master/subscribe c framework-info)) (def stream (:body response)) (def ch (async/chan)) (async/reduce handle-msg {:client c :stream stream :channel ch} ch) (read-stream ch stream)
As such, it might make sense to:
meson.scheduler.handlers
default
(async/reduce handlers/default {:client c :stream stream :channel ch} ch)
Sorry, something went wrong.
oubiwann
No branches or pull requests
Tasks:
The text was updated successfully, but these errors were encountered: