Skip to content

Commit 95b7ce4

Browse files
zkiteflyburningtnt
andauthored
Increase per_page limit in API request to 500 (#93)
* Increase per_page limit in API request to 500 * Update publics.rs --------- Co-authored-by: Burning_TNT <pangyl08@163.com>
1 parent 859462d commit 95b7ce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/easytier/publics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn fetch_public_nodes(room: &Room) -> PublicServers {
2222
.timeout(Some(Duration::from_secs(10)))
2323
.build()
2424
.map_err(io::Error::other)?
25-
.get("https://uptime.easytier.cn/api/nodes?is_active=true&page=1&per_page=100&&tags=MC%E4%B8%AD%E7%BB%A7")
25+
.get("https://uptime.easytier.cn/api/nodes?is_active=true&page=1&per_page=500&&tags=MC%E4%B8%AD%E7%BB%A7")
2626
.send()
2727
.map_err(io::Error::other)?
2828
).map_err(io::Error::other)?
@@ -73,4 +73,4 @@ pub fn fetch_public_nodes(room: &Room) -> PublicServers {
7373
logging!("RoomExperiment", "Cannot fetch EasyTier public nodes: {:?}.", e);
7474
FALLBACK_SERVERS.map(|s| s.into()).to_vec()
7575
})
76-
}
76+
}

0 commit comments

Comments
 (0)