improvement: warning for small max_request_size values

next
Timo Kösters 2021-05-22 10:34:19 +02:00
parent 3e2f742f30
commit 1b42770ab5
No known key found for this signature in database
GPG Key ID: 24DA7517711A2BA4
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ impl Database {
.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();