If using a bounded deque then:
"""
Once a bounded length deque is full, when new items are added, a corresponding number of items are discarded from the opposite end.
"""
This bug was introduced at commit
87657eb382da05039cce99862691efcc27243193
name = 'drop-upload'
def __init__(self, client, upload_dircap, local_dir_utf8, inotify=None,
- deque_max_len=100, pending_delay=1.0):
+ pending_delay=1.0):
service.MultiService.__init__(self)
try:
self._convergence = client.convergence
self._local_path = FilePath(local_dir)
- self._upload_deque = deque(maxlen=deque_max_len)
+ self._upload_deque = deque()
self.is_upload_ready = False
if inotify is None: