Skip to content

Commit

Permalink
Only log errors from increasing file limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ongy committed Nov 7, 2024
1 parent 659f05f commit a53b9dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use base64::Engine;
use clap::Parser;
use hyper::header::HOST;
use hyper::http::{HeaderName, HeaderValue};
use log::debug;
use log::{debug, warn};
use parking_lot::{Mutex, RwLock};
use std::collections::BTreeMap;
use std::fmt::Debug;
Expand Down Expand Up @@ -727,7 +727,9 @@ async fn main() -> anyhow::Result<()> {
} else {
logger.init();
};
fdlimit::raise_fd_limit()?;
if let Err(err) = fdlimit::raise_fd_limit() {
warn!("Failed to set soft filelimit to hard file limit: {}", err)
}

match args.commands {
Commands::Client(args) => {
Expand Down

0 comments on commit a53b9dd

Please sign in to comment.