Slow territory feed updates down

This commit is contained in:
Sakuhl 2018-03-19 19:10:15 +01:00
parent a0141a3ee2
commit 6284f18128

View File

@ -31,7 +31,7 @@ pub fn territory_livefeed() {
let mut timestamp = territories.as_object().unwrap().get("request").unwrap().as_object().unwrap().get("timestamp").unwrap().as_u64().unwrap();
loop {
thread::sleep_ms(10_000); // 10 seconds
thread::sleep_ms(20_000); // 10 seconds
let resp = reqwest::get("https://api.wynncraft.com/public_api.php?action=territoryList").unwrap();
let new_territories: Value = serde_json::from_reader(resp).unwrap();