Upgrade actix to v4.0.0-beta.4 (and associated fall-out)

This commit is contained in:
David Palm
2021-03-25 17:13:25 +01:00
parent dbabc88127
commit 3978085a38
6 changed files with 429 additions and 1315 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ use crate::types::{NodeId, NodeLocation};
#[derive(Clone)]
pub struct Locator {
client: reqwest::Client,
client: reqwest::blocking::Client,
cache: Arc<RwLock<FxHashMap<Ipv4Addr, Option<Arc<NodeLocation>>>>>,
}
@@ -36,7 +36,7 @@ impl LocatorFactory {
pub fn create(&self) -> Locator {
Locator {
client: reqwest::Client::new(),
client: reqwest::blocking::Client::new(),
cache: self.cache.clone(),
}
}