changeset 66:109fefea80a7

fix on watchedFiles startup Ignore-this: 153e58ad9a72032c7b130b915cd67665
author Drew Perttula <drewp@bigasterisk.com>
date Fri, 31 May 2019 21:47:09 +0000
parents 9bc9de580033
children 099c0a815bb7
files rdfdb/service.py rdfdb/syncedgraph.py
diffstat 2 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/rdfdb/service.py	Fri May 31 21:40:00 2019 +0000
+++ b/rdfdb/service.py	Fri May 31 21:47:09 2019 +0000
@@ -249,7 +249,8 @@
         log.info("patching graph %s -%d +%d" %
                  (ctx, len(patch.delQuads), len(patch.addQuads)))
 
-        self.watchedFiles.aboutToPatch(ctx)
+        if hasattr(self, 'watchedFiles'): # todo: eliminate this
+            self.watchedFiles.aboutToPatch(ctx)
 
         # an error here needs to drop the sender, and reset everyone
         # else if we can't rollback the failing patch.
--- a/rdfdb/syncedgraph.py	Fri May 31 21:40:00 2019 +0000
+++ b/rdfdb/syncedgraph.py	Fri May 31 21:47:09 2019 +0000
@@ -118,11 +118,6 @@
         self.initiallySynced: defer.Deferred[None] = defer.Deferred()
         self._graph = ConjunctiveGraph()
 
-        #self._receiver = PatchReceiver(self.rdfdbRoot, receiverHost, label,
-        #                               self._onPatch)
-
-        #self._sender = PatchSender(self.rdfdbRoot + 'patches',
-        #                           self._receiver.updateResource)
         AutoDepGraphApi.__init__(self)
         # this needs more state to track if we're doing a resync (and
         # everything has to error or wait) or if we're live