Merge pull request #2768 from TorontoMedia/patch

Remove duplicate method and rename invalid parameter
pull/2842/head
Sergey G. Brester 2020-08-24 16:39:25 +02:00 committed by GitHub
commit 57caf8ec90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -59,10 +59,6 @@ class FailManager:
with self.__lock:
return len(self.__failList), sum([f.getRetry() for f in self.__failList.values()])
def getFailTotal(self):
with self.__lock:
return self.__failTotal
def setMaxRetry(self, value):
self.__maxRetry = value

View File

@ -87,7 +87,7 @@ class ObserverThread(JailThread):
except KeyError:
raise KeyError("Invalid event index : %s" % i)
def __delitem__(self, name):
def __delitem__(self, i):
try:
del self._queue[i]
except KeyError: