Upgrade dependency to new version of rlimit.

This commit is contained in:
Nick Mathewson 2022-02-25 08:45:24 -05:00
parent 0ebab3df0b
commit c627f50544
3 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View File

@ -2357,9 +2357,9 @@ dependencies = [
[[package]]
name = "rlimit"
version = "0.6.2"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc0bf25554376fd362f54332b8410a625c71f15445bca32ffdfdf4ec9ac91726"
checksum = "347703a5ae47adf1e693144157be231dde38c72bd485925cae7407ad3e52480b"
dependencies = [
"libc",
]

View File

@ -34,7 +34,7 @@ futures = "0.3.14"
tracing = "0.1.18"
notify = "4.0"
once_cell = { version = "1", optional = true }
rlimit = "0.6"
rlimit = "0.7.0"
serde = { version = "1.0.103", features = ["derive"] }
tracing-subscriber = { version = "0.3.0", features = ["env-filter"] }
tokio-crate = { package = "tokio", version = "1.4", optional = true, features = ["signal"] }

View File

@ -11,7 +11,7 @@ use arti_client::TorClientConfig;
///
/// This doesn't actually do anything on windows.
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),
Err(e) => tracing::warn!("Error while increasing file limit: {}", e),
}