From: Daira Hopwood Date: Tue, 28 Apr 2015 18:28:29 +0000 (+0100) Subject: Bug fix: deque must be unbounded X-Git-Url: https://git.rkrishnan.org/simplejson/components/...?a=commitdiff_plain;h=62499360b3ef4be085ddc772507215ae605877ee;p=tahoe-lafs%2Ftahoe-lafs.git Bug fix: deque must be unbounded Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py index 0dacb692..c92889f8 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -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: