支持重新发送

This commit is contained in:
2021-01-08 13:32:20 +08:00
parent 9ab4fb72e4
commit 04633d6758
2 changed files with 10 additions and 2 deletions

View File

@@ -33,3 +33,4 @@ class settings:
) and int(d['minTTL']) >= 1 else 5
self._maxTTL = int(d['maxTTL']) if 'maxTTL' in d and d['maxTTL'].isnumeric(
) and int(d['maxTTL']) >= self._minTTL else max(1440, self._minTTL)
self._maxRetryCount = int(d['maxRetryCount']) if 'maxRetryCount' in d and d['maxRetryCount'].isnumeric() and int(d['maxRetryCount']) >= 0 else 3