Skip to content

Commit

Permalink
Configurable time sleep. Default to 0. Closes DocNow#76
Browse files Browse the repository at this point in the history
  • Loading branch information
nahuelhds committed May 25, 2020
1 parent 680e510 commit 777351c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion diffengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ def get_latest(self):

# make sure we don't go too fast
# TODO: can we remove this? Why is this here?
time.sleep(1)
time_sleep = config.get("time_sleep", 0)
if time_sleep > 0:
time.sleep(time_sleep)

# fetch the current readability-ized content for the page
logging.info("checking %s", self.url)
Expand Down

0 comments on commit 777351c

Please sign in to comment.