fix sleep in spankbang
This commit is contained in:
@@ -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?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user