mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
rust/reindeer: update eventsource to 0.5
Summary: The 0.3 version (currently being used only in one crate eden/scm/lib/commitcloudsubscriber) is using an old openssl crate which doesn't work with openssl library installed on most machines (Both in FB and on GitHub Actions). Reviewed By: mitrandir77 Differential Revision: D22430649 fbshipit-source-id: b8fa930841dbcdd4c085d8c9488d768b3526e1c4
This commit is contained in:
parent
10a10b7eaa
commit
0eb9d79a46
@ -17,12 +17,12 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.20"
|
||||
eventsource = "0.3.0"
|
||||
eventsource = "0.5"
|
||||
lazy_static = "1.2.0"
|
||||
log = "0.4.6"
|
||||
serde = { version = "1.0.80", features = ["derive"] }
|
||||
serde_json = "1.0.33"
|
||||
reqwest = "0.9.4"
|
||||
reqwest = "0.10"
|
||||
rust-ini = "*"
|
||||
regex = "1.0.6"
|
||||
thiserror = "1.0.5"
|
||||
|
@ -19,7 +19,6 @@ use log::{error, info, warn};
|
||||
use reqwest::Url;
|
||||
use serde::Deserialize;
|
||||
use std::collections::HashMap;
|
||||
use std::net::ToSocketAddrs;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::{mpsc, Arc};
|
||||
@ -314,7 +313,7 @@ impl WorkspaceSubscriberService {
|
||||
info!("{} Thread started...", sid);
|
||||
|
||||
let fire = |reason: &'static str, version: Option<u64>| {
|
||||
if service_url.to_socket_addrs().is_err() {
|
||||
if service_url.socket_addrs(|| None).is_err() {
|
||||
warn!(
|
||||
"{} Skip CloudSyncTrigger: failed to lookup address information {}",
|
||||
sid, service_url
|
||||
|
Loading…
Reference in New Issue
Block a user