Try to increase limits on start
This commit is contained in:
parent
a60738ff89
commit
fc28e18ffd
5 changed files with 26 additions and 1 deletions
|
|
@ -59,3 +59,7 @@ pub use librqbit_core::torrent_metainfo::*;
|
|||
pub fn version() -> &'static str {
|
||||
env!("CARGO_PKG_VERSION")
|
||||
}
|
||||
|
||||
pub fn try_increase_nofile_limit() -> anyhow::Result<u64> {
|
||||
Ok(rlimit::increase_nofile_limit(1024 * 1024)?)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue