Skip to content

Commit 575f6e3

Browse files
committed
Don't wait for an interval for the first poll of subscription
1 parent 01a5e90 commit 575f6e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/task/subscription.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ impl TaskSubscription {
3636
async fn continuous_fetch(&mut self, fetcher: Box<dyn FetcherTrait>) {
3737
let mut interval = tokio::time::interval(self.interval);
3838
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
39+
interval.reset_immediately();
3940

4041
let mut last_status = Status::empty();
4142

0 commit comments

Comments
 (0)