Skip to content

Commit

Permalink
Do not reduce soft if greater than 10,000 (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggordonhall authored Dec 22, 2023
1 parent 6ff7561 commit e0d7142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/src/qdrant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ fn run_command(command: &Path, qdrant_dir: &Path, stdout: &Path, stderr: &Path)

match getrlimit(Resource::RLIMIT_NOFILE) {
Ok((current_soft, current_hard)) => {
let new_soft = current_hard.min(10000);
info!(current_soft, current_hard, "got rlimit/nofile");
let new_soft = current_soft.max(current_hard.min(10000));
if let Err(err) = setrlimit(Resource::RLIMIT_NOFILE, new_soft, current_hard) {
error!(
?err,
Expand Down

0 comments on commit e0d7142

Please sign in to comment.