Skip to content

Commit

Permalink
chore(release): publish 0.0.77; rm DoH
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Nov 12, 2023
1 parent 18bd98c commit 2074f97
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/rsapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.0.76",
"version": "0.0.77",
"main": "index.js",
"types": "index.d.ts",
"files": [
Expand Down
1 change: 0 additions & 1 deletion rust-toolchain

This file was deleted.

3 changes: 1 addition & 2 deletions sync/src/doh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions sync/src/sync.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 2074f97

Please sign in to comment.