Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jun 16, 2024
1 parent d9d5028 commit abeb11e
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 42 deletions.
92 changes: 60 additions & 32 deletions Cargo.lock

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

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,34 @@ env_logger = { version = "0.11.3", default-features = false, features = [
"humantime",
] }
futures = { version = "0.3.30", features = ["async-await"] }
hyper = { version = "0.14.28", default-features = false, features = [
hyper = { version = "0.14.29", default-features = false, features = [
"server",
"http1",
], optional = true }
ipext = "0.1.0"
libsodium-sys-stable = "1.20.8"
libsodium-sys-stable = "1.20.9"
log = { version = "0.4.21", features = ["std", "release_max_level_debug"] }
mimalloc = { version = "0.1.42", default-features = false }
socket2 = "0.5.7"
parking_lot = "0.12.2"
parking_lot = "0.12.3"
rand = "0.8.5"
rlimit = "0.10.1"
rustc-hash = "1.1.0"
serde = "1.0.202"
serde_derive = "1.0.202"
serde = "1.0.203"
serde_derive = "1.0.203"
serde-big-array = "0.5.1"
sieve-cache = "0.2.0"
siphasher = "1.0.1"
slabigator = "0.9.2"
tokio = { version = "1.37.0", features = [
tokio = { version = "1.38.0", features = [
"net",
"io-std",
"io-util",
"fs",
"time",
"rt-multi-thread"
] }
toml = "0.8.13"
toml = "0.8.14"

[target.'cfg(target_family = "unix")'.dependencies]
privdrop = "0.5.4"
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,9 @@ fn privdrop(config: &Config) -> Result<(), Error> {
}
if config.daemonize {
let mut daemon = daemonize_simple::Daemonize::default();
daemon.stdout_file = config.log_file.clone();
daemon.stderr_file = config.log_file.clone();
daemon.pid_file = config.pid_file.clone();
daemon.stdout_file.clone_from(&config.log_file);
daemon.stderr_file.clone_from(&config.log_file);
daemon.pid_file.clone_from(&config.pid_file);
if let Some(chroot) = &config.chroot {
daemon.chdir = Some(chroot.into());
daemon.chroot = true;
Expand Down

0 comments on commit abeb11e

Please sign in to comment.