Skip to content

Commit

Permalink
deps and fix exit message
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Dec 26, 2023
1 parent 51ad317 commit 4e59044
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions proxy-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ publish = false
[dependencies]
doh-auth-proxy-lib = { path = "../proxy-lib/" }

anyhow = "1.0.75"
anyhow = "1.0.76"
mimalloc = { version = "*", default-features = false }
serde = { version = "1.0.193", default-features = false, features = ["derive"] }
derive_builder = "0.12.0"
tokio = { version = "1.35.0", default-features = false, features = [
tokio = { version = "1.35.1", default-features = false, features = [
"net",
"rt-multi-thread",
"time",
"sync",
"macros",
] }
async-trait = "0.1.74"
async-trait = "0.1.75"

# config
clap = { version = "4.4.11", features = ["std", "cargo", "wrap_help"] }
Expand Down
4 changes: 2 additions & 2 deletions proxy-bin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ async fn proxy_service_with_watcher(
// Continuous monitoring
loop {
tokio::select! {
_ = entrypoint(&proxy_conf, &runtime_handle, Some(term_notify.clone())) => {
error!("proxy entrypoint exited");
res = entrypoint(&proxy_conf, &runtime_handle, Some(term_notify.clone())) => {
error!("proxy entrypoint exited: {:?}", if res.is_err() { res.unwrap_err().to_string() } else { "".to_string() });
break;
}
_ = config_rx.changed() => {
Expand Down
13 changes: 7 additions & 6 deletions proxy-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ publish = false

[dependencies]
rand = "0.8.5"
tokio = { version = "1.35.0", features = [
tokio = { version = "1.35.1", features = [
"net",
"rt-multi-thread",
"time",
"sync",
"macros",
] }
futures = { version = "0.3.29", default-features = false, features = [
futures = { version = "0.3.30", default-features = false, features = [
"std",
"async-await",
] }
anyhow = "1.0.75"
anyhow = "1.0.76"
tracing = "0.1.40"
thiserror = "1.0.51"
async-trait = "0.1.74"
thiserror = "1.0.52"
async-trait = "0.1.75"
serde = { version = "1.0.193", features = ["derive"] }
itertools = "0.12.0"
rustc-hash = "1.1.0"
Expand All @@ -65,7 +65,8 @@ regex = "1.10.2"
socket2 = "0.5.5"

# http client
reqwest = { version = "0.11.22", default-features = false, features = [
# TODO: change this to hyper-1.0
reqwest = { version = "0.11.23", default-features = false, features = [
"json",
"trust-dns",
"rustls-tls",
Expand Down

0 comments on commit 4e59044

Please sign in to comment.