# HG changeset patch # User drewp@bigasterisk.com # Date 1453808161 28800 # Node ID c1b98006f56ee54e05fa4e97326f025f9d7a79ac # Parent 1e8ef0daf0f8d9cc61e1eeb66144d7a42e3075e4 fix patchablegraph unbind event Ignore-this: 96f7d4dd71f902730196e7517319192f diff -r 1e8ef0daf0f8 -r c1b98006f56e lib/patchablegraph.py --- a/lib/patchablegraph.py Tue Jan 26 03:34:05 2016 -0800 +++ b/lib/patchablegraph.py Tue Jan 26 03:36:01 2016 -0800 @@ -109,8 +109,10 @@ self.masterGraph.addObserver(self.onPatch) def onPatch(self, patchJson): + # throttle and combine patches here- ideally we could see how + # long the latency to the client is to make a better rate choice self.sendEvent(message=patchJson, event='patch') def unbind(self): - self.settings.masterGraph.removeObserver(self.onPatch) + self.masterGraph.removeObserver(self.onPatch)