-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use tokio::time::Interval for scheduling anchor batches (#563)
* fix: use tokio::time::Interval for scheduling anchor batches This leverages the time math of skipping missed ticks etc. We are only left with computing the time when we should start the first tick. For this we use chrono and then rely on Interval for the heavy lifting. * fix: use division operator * fix: better positive check logic * use function and add comment * fixup
- Loading branch information
1 parent
33f9ee9
commit e42df1a
Showing
1 changed file
with
46 additions
and
21 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