From 8d1162f20694d5d8551879e7ba9b34c817f0caed Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 6 Dec 2022 14:02:32 +0100 Subject: Change scheduling algo to deprioritize slow backends + refactoring --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index cb39c49..34c80f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ extern crate anyhow; use log::*; use std::sync::Arc; +use std::time::Instant; use futures::{FutureExt, TryFutureExt}; use std::net::SocketAddr; @@ -175,6 +176,7 @@ async fn main() { .split(',') .map(|x| x.to_string()) .collect(), + time_origin: Instant::now(), }; let https_task = tokio::spawn( -- cgit v1.2.3