mirror of
https://git.funtimes909.xyz/ServerSeekerV2/ServerSeekerV2.git
synced 2026-10-11 18:08:14 +08:00
🧌
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -9,7 +9,7 @@ use std::time::{SystemTime, UNIX_EPOCH};
|
||||
use tracing::info;
|
||||
|
||||
pub async fn fetch_servers(pool: &Pool<Postgres>) -> Vec<PgRow> {
|
||||
sqlx::query("SELECT address FROM servers ORDER BY last_seen DESC LIMIT 300")
|
||||
sqlx::query("SELECT address FROM servers ORDER BY last_seen ASC")
|
||||
.fetch_all(pool)
|
||||
.await
|
||||
.expect("failed to fetch servers from database")
|
||||
|
||||
Reference in new issue
Block a user