mirror of
https://github.com/OMGeeky/twba_reqwest_backoff.git
synced 2026-01-04 10:20:20 +01:00
comment out dbg statement
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "reqwest-backoff"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@@ -144,7 +144,7 @@ fn is_backoff_limit_reached(attempt: u32, host: HostType) -> bool {
|
||||
|
||||
#[tracing::instrument]
|
||||
fn check_response_is_backoff(response: &Response, host: HostType) -> bool {
|
||||
dbg!(response, host);
|
||||
// dbg!(response, host);
|
||||
let code = response.status();
|
||||
if code.is_success() {
|
||||
return false;
|
||||
@@ -166,7 +166,7 @@ fn check_response_is_backoff(response: &Response, host: HostType) -> bool {
|
||||
|
||||
#[tracing::instrument]
|
||||
fn get_backoff_time(response: &Response, host: HostType, attempt: u32) -> Result<u64> {
|
||||
dbg!(response, host);
|
||||
// dbg!(response, host);
|
||||
Ok(match host {
|
||||
HostType::Twitch => {
|
||||
let timestamp = get_twitch_rate_limit_value(response)?;
|
||||
|
||||
Reference in New Issue
Block a user