summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-08-30 23:40:38 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-08-30 23:40:38 -0700
commit03f802dfcb1339303e7c394fb77a07db2f2858da (patch)
treeed19223ad6fbdfe6ffcaf6936e29ad9903edf3ba
parent640afed58c7cbb15e026a77577b914bbff961dc2 (diff)
downloadzake-03f802dfcb1339303e7c394fb77a07db2f2858da.tar.gz
Always dispatch for all paths (instead of skipping)
-rw-r--r--zake/fake_client.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/zake/fake_client.py b/zake/fake_client.py
index 8597c59..660d061 100644
--- a/zake/fake_client.py
+++ b/zake/fake_client.py
@@ -362,15 +362,11 @@ class FakeClient(object):
self._data_watches_lock)
def _fire_watches(self, paths, event, watch_source, watch_mutate_lock):
- dispatched = set()
for path in reversed(sorted(paths)):
- if path in dispatched:
- continue
with watch_mutate_lock:
watches = list(watch_source.pop(path, []))
for w in watches:
self.handler.dispatch_callback(utils.make_cb(w, [event]))
- dispatched.add(path)
def transaction(self):
return FakeTransactionRequest(self)