Commit c627f505 authored by Nick Mathewson's avatar Nick Mathewson 🦞
Browse files

Upgrade dependency to new version of rlimit.

parent 0ebab3df
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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",
]
+1 −1
Original line number Diff line number Diff line
@@ -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"] }
+1 −1
Original line number Diff line number Diff line
@@ -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),
    }