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:
Lukas Piatkowski 2020-07-08 04:10:48 -07:00 committed by Facebook GitHub Bot
parent 10a10b7eaa
commit 0eb9d79a46
2 changed files with 3 additions and 4 deletions

View File

@ -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"

View File

@ -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