]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - actions.py
use autocommit
[quix0rs-apt-p2p.git] / actions.py
index 054f886e2b9a4726c150eaa0b7c0dd20b10de565..1c58ee0785fcc0cd90b165307893894abcce0018 100644 (file)
@@ -158,7 +158,7 @@ class GetValue(FindNode):
            ## all done, didn't find it!!
            self.finished=1
            reactor.callFromThread(self.callback,[])
-    
+
     ## get value
     def goWithNodes(self, nodes, found=None):
        self.results = {}
@@ -188,6 +188,5 @@ class KeyExpirer:
        c = self.store.cursor()
        s = "delete from kv where time < '%s';" % self.cut
        c.execute(s)
-       self.store.commit()
        reactor.callLater(const.KE_DELAY, self.doExpire)
        
\ No newline at end of file