Skip to content
Snippets Groups Projects
Unverified Commit 1b42770a authored by Timo Kösters's avatar Timo Kösters
Browse files

improvement: warning for small max_request_size values

parent 3e2f742f
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,9 @@ pub async fn load_or_create(config: Config) -> Result<Self> {
.use_compression(true)
.open()?;
info!("Opened sled database at {}", config.database_path);
if config.max_request_size < 1024 {
eprintln!("ERROR: Max request size is less than 1KB. Please increase it.");
}
let (admin_sender, admin_receiver) = mpsc::unbounded();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment