Use the method

There is a method.  Why not use it?
This commit is contained in:
Jean-Paul Calderone 2019-03-18 14:18:09 -04:00
parent 135462ccd3
commit c01c85522d
1 changed files with 1 additions and 1 deletions

View File

@ -1732,7 +1732,7 @@ class Downloader(QueueMixin, WriteFileMixin):
"Last tried at %s" % self.nice_current_time(),
)
write_traceback()
yield task.deferLater(self._clock, self._poll_interval, lambda: None)
yield task.deferLater(self._clock, self._scan_delay(), lambda: None)
def nice_current_time(self):
return format_time(datetime.fromtimestamp(self._clock.seconds()).timetuple())