Mercurial > code > home > repos > homeauto
diff lib/patchsource.py @ 1242:24c004aac998
stats->state to make room for greplin stats
Ignore-this: cfa2357bdf06ac3324741700ac44db5c
darcs-hash:d4acffea4be6833f5af57660400dd13d2659c32e
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 15 Apr 2019 00:17:04 -0700 |
parents | b50a13ef20ba |
children | 81ab17e377b7 |
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):