-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Having now as a default argument means it is set once and then never adjusted. So in subsequent calls to _seconds_until_refresh the duration will just continue to grow larger and larger as it evaluates agains the same now The result of this means that duration // 2 block is always being hit and will continue to grow. It could grow to be greater than 3600 and lead to errors.
- Loading branch information
1 parent
14d6b1c
commit 27f31cd
Showing
2 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters