# HG changeset patch # User drewp # Date 1453808161 28800 # Node ID 69aad813a94e7570c0281ba6c7ed560a76d581e9 # Parent 9328df09f679a4801762371274e8ad5d8d5b12da fix patchablegraph unbind event Ignore-this: 96f7d4dd71f902730196e7517319192f darcs-hash:90040491939bac62a967c4eb631a8bfd96d9fdba diff -r 9328df09f679 -r 69aad813a94e 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)