Mercurial > code > home > repos > homeauto
diff lib/patchsource.py @ 439:124c921ad52d
stats->state to make room for greplin stats
Ignore-this: cfa2357bdf06ac3324741700ac44db5c
author | drewp@bigasterisk.com |
---|---|
date | Mon, 15 Apr 2019 00:17:04 -0700 |
parents | fcd2c026f51e |
children | 3d51d4b63497 |
line wrap: on
line diff
--- a/lib/patchsource.py Sat Apr 13 20:56:30 2019 -0700 +++ b/lib/patchsource.py Mon Apr 15 00:17:04 2019 -0700 @@ -41,7 +41,7 @@ d.addCallback(self._onDisconnect) self._eventSource.protocol.setFinishedDeferred = sfd - def stats(self): + def state(self): return { 'url': self.url, 'fullGraphReceived': self._fullGraphReceived, @@ -127,9 +127,9 @@ def _onPatch(self, p, fullGraph): self._listener(p, fullGraph=fullGraph) - def stats(self): + def state(self): return { - 'reconnectedPatchSource': self._ps.stats(), + 'reconnectedPatchSource': self._ps.state(), } def stop(self):