mirror of
https://git.funtimes909.xyz/ServerSeekerV2/ServerSeekerV2.git
synced 2026-10-10 20:23:09 +08:00
Fix
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user