The custom channel seems doesn't work
kangbb opened this issue · comments
Beibei Kang commented
I hava tried it as following:
(def body (chan 1 (map :body)))
(go (while true
(println (<! body))))
(go (http/get "https://api.github.com/users"
{:with-credentials? false
:query-params {"since" 135}}
{:channel body}))
But nothing will print.
Sean Corfield commented
@kangbb You're passing two maps -- it should just be one:
(go (http/get "https://api.github.com/users"
{:with-credentials? false
:query-params {"since" 135}
:channel body}))
Beibei Kang commented
@kangbb You're passing two maps -- it should just be one:
(go (http/get "https://api.github.com/users" {:with-credentials? false :query-params {"since" 135} :channel body}))
Thanks a lot, it works.
Kira McLean commented