Fix wrong key and convert String array id to Long

This commit is contained in:
Vassil Dichev 2012-05-10 09:43:50 +03:00 committed by Gijs Stuurman
parent 2a7e65ef5b
commit 28f1a7248f

View file

@ -361,7 +361,8 @@
(update-in [:array-buffer] conj [next-array-id array])
(assoc :last-sent-array-id next-array-id))))
(acknowledge-arrays [this array-id]
(update-in this [:to-confirm-arrays-ids] drop-queue array-id))
(update-in this [:to-confirm-array-ids]
drop-queue (Long/parseLong array-id)))
;; tries to do the actual writing to the client
;; @todo the composition is a bit awkward in this method due to the
;; try catch and if mix