]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Bug fix: deque must be unbounded
authorDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 18:28:29 +0000 (19:28 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 18:28:29 +0000 (19:28 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/drop_upload.py

index 0dacb6925bd482bb204cf525735bc0b87e540e51..c92889f8ec1f4bd192b6b5f74053960e57eb19d6 100644 (file)
@@ -23,7 +23,7 @@ class DropUploader(service.MultiService):
     name = 'drop-upload'
 
     def __init__(self, client, upload_dircap, local_dir_utf8, dbfile, inotify=None,
-                 deque_max_len=100, pending_delay=1.0):
+                 pending_delay=1.0):
         service.MultiService.__init__(self)
         try:
             local_dir_u = abspath_expanduser_unicode(local_dir_utf8.decode('utf-8'))
@@ -44,7 +44,7 @@ class DropUploader(service.MultiService):
         self._local_dir = unicode(local_dir, 'UTF-8')
         self._dbfile = dbfile
 
-        self._upload_deque = deque(maxlen=deque_max_len)
+        self._upload_deque = deque()
         self.is_upload_ready = False
 
         if inotify is None: