fix filtres typo

This commit is contained in:
Roman Volosovskyi 2016-08-16 14:10:16 +03:00
parent 661cd04e74
commit 7255664990
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@
create-identity create-identity
add-identity add-identity
stop-listener stop-listener
stop-watching-filtres]] stop-watching-filters]]
[status-im.protocol.handler :refer [handle-incoming-whisper-msg] [status-im.protocol.handler :refer [handle-incoming-whisper-msg]
:as handler] :as handler]
[status-im.protocol.user-handler :refer [invoke-user-handler]] [status-im.protocol.user-handler :refer [invoke-user-handler]]
@ -85,7 +85,7 @@
:address "no-address"} parameters)) :address "no-address"} parameters))
([{:keys [public-key] :as account} {:keys [handler ethereum-rpc-url storage identity active-group-ids]}] ([{:keys [public-key] :as account} {:keys [handler ethereum-rpc-url storage identity active-group-ids]}]
(when (seq (state/get-all-filters)) (when (seq (state/get-all-filters))
(stop-watching-filtres)) (stop-watching-filters))
(set-storage storage) (set-storage storage)
(set-handler handler) (set-handler handler)
(go (go

View File

@ -135,7 +135,7 @@
(.stopWatching filter) (.stopWatching filter)
(state/remove-filter topics))))) (state/remove-filter topics)))))
(defn stop-watching-filtres [] (defn stop-watching-filters []
(doseq [filter (state/get-all-filters)] (doseq [filter (state/get-all-filters)]
(.stopWatching filter)) (.stopWatching filter))
(state/remove-all-filters)) (state/remove-all-filters))