Upgrade dependency to new version of rlimit.
This commit is contained in:
parent
0ebab3df0b
commit
c627f50544
|
@ -2357,9 +2357,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rlimit"
|
name = "rlimit"
|
||||||
version = "0.6.2"
|
version = "0.7.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "cc0bf25554376fd362f54332b8410a625c71f15445bca32ffdfdf4ec9ac91726"
|
checksum = "347703a5ae47adf1e693144157be231dde38c72bd485925cae7407ad3e52480b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
|
@ -34,7 +34,7 @@ futures = "0.3.14"
|
||||||
tracing = "0.1.18"
|
tracing = "0.1.18"
|
||||||
notify = "4.0"
|
notify = "4.0"
|
||||||
once_cell = { version = "1", optional = true }
|
once_cell = { version = "1", optional = true }
|
||||||
rlimit = "0.6"
|
rlimit = "0.7.0"
|
||||||
serde = { version = "1.0.103", features = ["derive"] }
|
serde = { version = "1.0.103", features = ["derive"] }
|
||||||
tracing-subscriber = { version = "0.3.0", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3.0", features = ["env-filter"] }
|
||||||
tokio-crate = { package = "tokio", version = "1.4", optional = true, features = ["signal"] }
|
tokio-crate = { package = "tokio", version = "1.4", optional = true, features = ["signal"] }
|
||||||
|
|
|
@ -11,7 +11,7 @@ use arti_client::TorClientConfig;
|
||||||
///
|
///
|
||||||
/// This doesn't actually do anything on windows.
|
/// This doesn't actually do anything on windows.
|
||||||
pub(crate) fn use_max_file_limit(config: &TorClientConfig) {
|
pub(crate) fn use_max_file_limit(config: &TorClientConfig) {
|
||||||
match rlimit::utils::increase_nofile_limit(config.system.max_files) {
|
match rlimit::increase_nofile_limit(config.system.max_files) {
|
||||||
Ok(n) => tracing::debug!("Increased process file limit to {}", n),
|
Ok(n) => tracing::debug!("Increased process file limit to {}", n),
|
||||||
Err(e) => tracing::warn!("Error while increasing file limit: {}", e),
|
Err(e) => tracing::warn!("Error while increasing file limit: {}", e),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue