This commit is contained in:
funtimes909
2025-05-04 01:28:00 +12:00
parent 567476e083
commit aa434adccb
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ use std::str::FromStr;
use std::time::{SystemTime, UNIX_EPOCH};
pub async fn fetch_servers(pool: &Pool<Postgres>) -> Vec<PgRow> {
sqlx::query("SELECT address FROM servers ORDER BY last_seen ASC LIMIT 30")
sqlx::query("SELECT address FROM servers ORDER BY last_seen ASC")
.fetch_all(pool)
.await
.expect("failed to fetch servers")
-2
View File
@@ -72,8 +72,6 @@ pub async fn handle_scan_results(
.commit()
.await
.expect("error while commiting to database");
info!("Commiting {} results to database", results_len - errors_len);
}
#[derive(Debug, Error)]