From 7d61caea52cab781f73b53679fec56b6abc8ec4d Mon Sep 17 00:00:00 2001 From: "Alexander K. Hudek" Date: Sat, 18 Oct 2014 18:11:52 -0400 Subject: [PATCH] Add buffers on channels. --- project.clj | 2 +- src/views/router.clj | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project.clj b/project.clj index 45e0183..caf8fb3 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject views "0.4.0" +(defproject views "0.4.1" :description "You underestimate the power of the SQL side" :url "https://github.com/diligenceengine/views" diff --git a/src/views/router.clj b/src/views/router.clj index d9e1d65..567ad93 100644 --- a/src/views/router.clj +++ b/src/views/router.clj @@ -27,9 +27,9 @@ (defn init! [{:keys [base-subscribed-views] :as conf} client-chan] - (let [subs (chan) - unsubs (chan) - control (chan) + (let [subs (chan 200) + unsubs (chan 200) + control (chan 200) disconnects (filter< #(= :disconnect (:body %)) control)] (sub client-chan :views.subscribe subs) (sub client-chan :views.unsubscribe unsubs)