mirror of
https://github.com/zhboner/realm.git
synced 2026-11-21 00:05:56 +00:00
Revert "set fd limit when starting, up to threshold=65535"
This reverts commit 4c4b9ca428.
This commit is contained in:
Generated
+1
-1
@@ -824,7 +824,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "realm"
|
||||
version = "2.3.4"
|
||||
version = "2.3.3"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"chrono",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "realm"
|
||||
version = "2.3.4"
|
||||
version = "2.3.3"
|
||||
authors = ["zhboner <zhboner@gmail.com>"]
|
||||
edition = "2021"
|
||||
|
||||
|
||||
+1
-2
@@ -69,10 +69,9 @@ fn handle_matches(matches: ArgMatches) -> CmdInput {
|
||||
#[cfg(all(unix, not(target_os = "android")))]
|
||||
{
|
||||
use realm_syscall::{get_nofile_limit, set_nofile_limit};
|
||||
const THRESHOLD: u64 = 65535;
|
||||
|
||||
let nofile = matches.value_of("nofile").map_or_else(
|
||||
|| get_nofile_limit().map_or(None, |(_, hard)| Some(if hard > THRESHOLD { THRESHOLD } else { hard })),
|
||||
|| get_nofile_limit().map_or(None, |(_, hard)| Some(hard)),
|
||||
|nofile| Some(nofile.parse().unwrap()),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user