core: increase max open files limit

This commit is contained in:
nym21
2025-06-24 12:18:49 +02:00
parent 1103e538a5
commit 39c470ad7a
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@ use serde::{Deserialize, Serialize};
use crate::services::Services;
#[derive(Parser, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Deserialize, Serialize)]
#[command(version, about)]
pub struct Config {
/// Bitcoin main directory path, defaults: ~/.bitcoin, ~/Library/Application\ Support/Bitcoin, saved
#[serde(default, deserialize_with = "default_on_error")]
+1 -1
View File
@@ -7,7 +7,7 @@ pub fn setrlimit() -> io::Result<()> {
rlimit::setrlimit(
Resource::NOFILE,
no_file_limit.0.max(210_000),
no_file_limit.0.max(420_000),
no_file_limit.1,
)?;