Skip to content

Commit fc23866

Browse files
committed
Temp
1 parent 31420b4 commit fc23866

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/rethinkdb/net.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
(do (swap! (:conn conn) update-in [:pending token] #(dissoc % :cursor))
8080
(s/put-all! cursor (conj resp ::done)))
8181
(do (swap! (:conn conn) update :pending #(dissoc % token))
82-
(s/put! result resp)
82+
(s/put-all! result resp)
8383
(s/close! result)))))
8484

8585
(defn append-result [conn token resp]
@@ -96,7 +96,7 @@
9696
(let [{type :t resp :r etype :e notes :n :as json-resp} resp]
9797
(case (int type)
9898
(1 5) ;; Success atom, server info
99-
(deliver-result conn token (first resp))
99+
(deliver-result conn token resp)
100100

101101
2 ;; Success sequence
102102
(deliver-result conn token resp)

test/rethinkdb/async_test.clj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
(async/into [])
3030
(async/<!!))
3131
expected)
32+
;; Insert (success atom)
3233
[{:deleted 0
3334
:errors 0
3435
:inserted 2
@@ -37,7 +38,15 @@
3738
:unchanged 0}]
3839
(-> (r/table utils/test-table)
3940
(r/insert pokemon))
41+
42+
;; Success sequence
4043
pokemon (-> (r/table utils/test-table))
44+
45+
;; Success atom
4146
[pokemon] (-> (r/table utils/test-table) (r/order-by :name))
4247

43-
)))
48+
;; Changefeed
49+
(map #(hash-map :new_val %) pokemon)
50+
(-> (r/table utils/test-table)
51+
(r/changes {:include-initial true})
52+
(r/limit 2)))))

0 commit comments

Comments
 (0)