diff --git a/packages/rsapi/package.json b/packages/rsapi/package.json index 3c56368..3b3c172 100644 --- a/packages/rsapi/package.json +++ b/packages/rsapi/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "0.0.76", + "version": "0.0.77", "main": "index.js", "types": "index.d.ts", "files": [ diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index 8ee72f4..0000000 --- a/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -nightly-2023-01-01 diff --git a/sync/src/doh.rs b/sync/src/doh.rs index 02a5558..d05b787 100644 --- a/sync/src/doh.rs +++ b/sync/src/doh.rs @@ -37,8 +37,7 @@ pub struct DoHResolver; impl Resolve for DoHResolver { fn resolve(&self, name: Name) -> Resolving { - // also 1.1.1.1 - let url = format!("https://1.12.12.12/dns-query?name={}&type=A", name); + let url = format!("https://1.1.1.1/dns-query?name={}&type=A", name); Box::pin(async move { let lock = QUERY_LOCK.lock().await; diff --git a/sync/src/sync.rs b/sync/src/sync.rs index d1e86e6..7c81090 100644 --- a/sync/src/sync.rs +++ b/sync/src/sync.rs @@ -1,6 +1,6 @@ use std::borrow::Cow; use std::collections::HashMap; -use std::sync::Arc; +// use std::sync::Arc; use std::time::Duration; use serde_json::json; @@ -94,7 +94,7 @@ impl SyncClient { let mut builder = reqwest::Client::builder() .user_agent("Logseq-sync/0.3") .connection_verbose(false) - .dns_resolver(Arc::new(crate::doh::DoHResolver)) + // .dns_resolver(Arc::new(crate::doh::DoHResolver)) .timeout(Duration::from_secs(30)) .connect_timeout(Duration::from_secs(15)) .http2_keep_alive_interval(Duration::from_secs(10))