aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-06 14:02:32 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-06 14:02:32 +0100
commit8d1162f20694d5d8551879e7ba9b34c817f0caed (patch)
treefdb6f52059554a2e713dff05eff5cbc645eb1a24 /src/main.rs
parentba5bf133f61c3a56728c2ab73e11abf47ef8348c (diff)
downloadtricot-8d1162f20694d5d8551879e7ba9b34c817f0caed.tar.gz
tricot-8d1162f20694d5d8551879e7ba9b34c817f0caed.zip
Change scheduling algo to deprioritize slow backends + refactoring
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
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(