change time.sleep to 1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
mitsuha_s 2022-07-14 01:37:18 +00:00
parent 292a7a3c88
commit 2206c6299d

View file

@ -157,7 +157,7 @@ class Notifier:
self.log.debug('__count_request_and_wait()') self.log.debug('__count_request_and_wait()')
if self.sent_counter >= self.BATCH_LIMIT: if self.sent_counter >= self.BATCH_LIMIT:
self.log.debug('Requests limit exceeded, sleeping for a second') self.log.debug('Requests limit exceeded, sleeping for a second')
time.sleep(2) time.sleep(1)
self.log.debug('Resetting counter') self.log.debug('Resetting counter')
self.sent_counter = 0 self.sent_counter = 0
self.sent_counter += 1 self.sent_counter += 1