Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m00nwtchr committed Oct 4, 2024
1 parent 808707c commit d20c5c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
13 changes: 0 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ opt-level = "z"

[features]
use-synonyms-search = ["thesaurus/static"]
default = ["memory-cache", "socks"]
default = ["memory-cache"]
dhat-heap = ["dep:dhat"]
memory-cache = ["dep:moka"]
redis-cache = ["dep:redis", "dep:base64"]
compress-cache-results = ["dep:async-compression", "dep:cfg-if"]
encrypt-cache-results = ["dep:chacha20poly1305", "dep:chacha20"]
cec-cache-results = ["compress-cache-results", "encrypt-cache-results"]
experimental-io-uring = ["actix-web/experimental-io-uring"]
use-non-static-synonyms-search = ["thesaurus"]
use-non-static-synonyms-search = ["thesaurus"]
3 changes: 2 additions & 1 deletion src/config/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ impl Config {
_ => parsed_cet,
};

let proxy_opt = globals.get::<_, Option<String>>("proxy")?;
let proxy_opt = globals.get::<_, Option<String>>("proxy")?;
let proxy = proxy_opt.and_then(|proxy_str| {
Proxy::all(proxy_str).ok().and_then(|_| {
log::error!("Invalid proxy url, defaulting to no proxy.");
None
})
});

Ok(Config {
port: globals.get::<_, u16>("port")?,
Expand Down

0 comments on commit d20c5c4

Please sign in to comment.