Fix for updating hash.
This commit is contained in:
parent
bff7c9eb5f
commit
cd6a6e559a
|
@ -1,4 +1,4 @@
|
||||||
(defproject views "1.4.3"
|
(defproject views "1.4.4"
|
||||||
:description "A view to the past helps navigate the future."
|
:description "A view to the past helps navigate the future."
|
||||||
|
|
||||||
:url "https://github.com/kirasystems/views"
|
:url "https://github.com/kirasystems/views"
|
||||||
|
|
|
@ -60,8 +60,8 @@
|
||||||
data-hash (hash vdata)]
|
data-hash (hash vdata)]
|
||||||
;; Check to make sure that we are still subscribed. It's possible that
|
;; Check to make sure that we are still subscribed. It's possible that
|
||||||
;; an unsubscription event came in while computing the view.
|
;; an unsubscription event came in while computing the view.
|
||||||
(when (get-in @view-system [:subscribed subscriber-key view-sig])
|
(when (contains? (get-in @view-system [:subscribed subscriber-key]) view-sig)
|
||||||
(update-hash! view-system view-sig data-hash)
|
(swap! view-system update-hash! view-sig data-hash)
|
||||||
((get @view-system :send-fn) subscriber-key [[view-id parameters] vdata])))
|
((get @view-system :send-fn) subscriber-key [[view-id parameters] vdata])))
|
||||||
(catch Exception e
|
(catch Exception e
|
||||||
(error "error subscribing:" namespace view-id parameters
|
(error "error subscribing:" namespace view-id parameters
|
||||||
|
|
Loading…
Reference in a new issue