test: add comprehensive zero-downtime reload stress test

This commit is contained in:
2026-02-03 20:36:38 +08:00
parent c1fdcd46d0
commit ba609187eb
4 changed files with 580 additions and 56 deletions

View File

@@ -245,11 +245,9 @@ pub async fn handle_connection(
bytes_recv,
};
tokio::spawn(async move {
if let Err(e) = db.insert_log(log_entry).await {
error!("failed to insert tcp log: {}", e);
}
});
if let Err(e) = db.insert_log(log_entry).await {
error!("failed to insert tcp log: {}", e);
}
Ok(total_bytes)
}