]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Remove redundant calls to _scan and startService.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 20 Apr 2015 23:02:33 +0000 (00:02 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 18:46:48 +0000 (19:46 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py
src/allmydata/test/test_drop_upload.py

index a482caf764a7be6a0bea03f226c63cffdb604041..f4666f5000a9e990f26d2e50ce451909803522d8 100644 (file)
@@ -209,7 +209,6 @@ class DropUploader(service.MultiService):
                 #dirname = path.decode(get_filesystem_encoding())
                 dirname = path
 
-            reactor.callLater(0, self._scan, dirname)
             return self._parent.create_subdirectory(name)
 
         def _maybe_upload(val):
index afbc3a4966a4c287b62cee1163f34b0d9852935c..14cecb81a9ef3fb70520e3a767dd539ab252d7b2 100644 (file)
@@ -48,10 +48,8 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, NonA
         self.uploader = DropUploader(self.client, self.upload_dircap, self.local_dir.encode('utf-8'),
                                          "magicfolderdb.sqlite", inotify=self.inotify, pending_delay=0.2)
         self.uploader.setServiceParent(self.client)
-        d = self.uploader.startService()
         self.uploader.upload_ready()
         self.failUnlessEqual(self.uploader._db.VERSION, 2)
-        return d
 
     # Prevent unclean reactor errors.
     def _cleanup(self, res):