Skip to content

Commit

Permalink
Stub the polling loop
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-onelson committed Jul 9, 2024
1 parent ee8ce72 commit 1a7b073
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bridge/svix-bridge/src/webhook_receiver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,12 @@ impl PollerReceiverConfig {
}

async fn run_inner(poller: &SvixEventsPoller) -> ! {
todo!()
// FIXME: exponential back off
let mut interval = tokio::time::interval(Duration::from_secs(3));
loop {
interval.tick().await;
tracing::debug!("want to poll /events");
}
}

/// Pollers make HTTP requests in a loop and forward what they fetch to their `ReceiverOutput`
Expand Down

0 comments on commit 1a7b073

Please sign in to comment.