configurable dynamic stream concurrency scalar
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
b195107053
commit
7a6d657558
9 changed files with 144 additions and 20 deletions
|
@ -1,6 +1,12 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use conduwuit::{config::Config, info, log::Log, utils::sys, Error, Result};
|
||||
use conduwuit::{
|
||||
config::Config,
|
||||
info,
|
||||
log::Log,
|
||||
utils::{stream, sys},
|
||||
Error, Result,
|
||||
};
|
||||
use tokio::{runtime, sync::Mutex};
|
||||
|
||||
use crate::{clap::Args, logging::TracingFlameGuard};
|
||||
|
@ -45,6 +51,8 @@ impl Server {
|
|||
sys::maximize_fd_limit()
|
||||
.expect("Unable to increase maximum soft and hard file descriptor limit");
|
||||
|
||||
let (_old_width, _new_width) = stream::set_width(config.stream_width_default);
|
||||
|
||||
info!(
|
||||
server_name = %config.server_name,
|
||||
database_path = ?config.database_path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue