mirror of
https://github.com/awfufu/traudit
synced 2026-03-01 13:39:44 +08:00
test: add comprehensive zero-downtime reload stress test
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user