]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
rename ignore count to upload ignore count
authorDavid Stainton <dstainton415@gmail.com>
Tue, 14 Jul 2015 23:39:26 +0000 (16:39 -0700)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 1 Oct 2015 00:19:45 +0000 (01:19 +0100)
src/allmydata/frontends/magic_folder.py

index fc9a2ad107027e08d0799001ee41f2f87e483652..4b51606cd436df315606832a055d9ec259f8e65e 100644 (file)
@@ -91,10 +91,9 @@ class MagicFolder(service.MultiService):
 
         self._processed_callback = lambda ign: None
         self._download_callback = lambda ign: None
-        self._ignore_count = 0
+        self._upload_ignore_count = 0
         self._download_ignore_count = 0
 
-        # XXX correct?
         self._notifier = self._inotify.INotify()
 
         if hasattr(self._notifier, 'set_pending_delay'):
@@ -462,10 +461,10 @@ class MagicFolder(service.MultiService):
         return None  # intentionally suppress failures, which have already been logged
 
     def _do_processed_callback(self, res):
-        if self._ignore_count == 0:
+        if self._upload_ignore_count == 0:
             self._processed_callback(res)
         else:
-            self._ignore_count -= 1
+            self._upload_ignore_count -= 1
         return None  # intentionally suppress failures, which have already been logged
 
     def set_download_callback(self, callback, ignore_count=0):
@@ -482,7 +481,7 @@ class MagicFolder(service.MultiService):
         local filesystem notification has been processed (successfully or unsuccessfully).
         """
         self._processed_callback = callback
-        self._ignore_count = ignore_count
+        self._upload_ignore_count = ignore_count
 
     def finish(self, for_tests=False):
         self._stopped = True