fix sleep in spankbang

This commit is contained in:
Simon
2025-07-13 12:48:36 +00:00
parent 0d3e0170d4
commit 93e090c050

View File

@@ -245,7 +245,7 @@ impl SpankbangProvider {
let mut response = response;
while response.status().as_u16() == 429 {
println!("Received 429 Too Many Requests. Waiting 10 seconds before retrying...");
sleep(Duration::from_secs(60)).await;
ntex::time::sleep(ntex::time::Seconds(60)).await;
response = client.get(url.clone()).header("Cookie", cookies.clone()).send().await?;
}