From e27287bf17341fcd2d1a26bdfdf28a272a013969 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 7 Jan 2018 12:13:06 -0500 Subject: [PATCH] Return all query results in one request --- src/looped_in/core.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/looped_in/core.cljs b/src/looped_in/core.cljs index 987569e..395dd23 100644 --- a/src/looped_in/core.cljs +++ b/src/looped_in/core.cljs @@ -11,6 +11,7 @@ (let [response-chan (chan)] (GET "http://hn.algolia.com/api/v1/search" {:params {"query" url + "hitsPerPage" 1000 "restrictSearchableAttributes" "url"} :handler (fn [res] (go (>! response-chan res))) :error-handler (fn [err] (go (>! response-chan err)))}) @@ -18,5 +19,4 @@ (let [current-url (-> js/window (.-location) (.-href)) sub-chan (fetch-submission current-url)] - (go (println (js (