Skip to content

Commit

Permalink
Merge pull request #337 from lfglabs-dev/fix/build-errors
Browse files Browse the repository at this point in the history
fix: build error
  • Loading branch information
Th0rgal authored Nov 25, 2024
2 parents c9c3e16 + d250eae commit c3a5d79
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/endpoints/defi/rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use futures::stream::{FuturesOrdered, StreamExt};
use reqwest::header::{HeaderMap, HeaderValue, ACCEPT, USER_AGENT};
use reqwest_middleware::{ClientBuilder, ClientWithMiddleware, Error};
use reqwest_retry::{policies::ExponentialBackoff, RetryTransientMiddleware};
use reqwest_tracing::TracingMiddleware;
use serde::{Deserialize, Serialize};
use serde_json::json;
use starknet::{core::types::FieldElement, macros::selector};
Expand All @@ -37,7 +36,6 @@ pub async fn get_defi_rewards(
// Retry up to 3 times with increasing intervals between attempts.
let retry_policy = ExponentialBackoff::builder().build_with_max_retries(3);
let client = ClientBuilder::new(reqwest::Client::new())
.with(TracingMiddleware::default())
.with(RetryTransientMiddleware::new_with_policy(retry_policy))
.build();

Expand Down

0 comments on commit c3a5d79

Please sign in to comment.