From 9f0c8d69137733ea9fe3c157409eb46d923368b0 Mon Sep 17 00:00:00 2001 From: Thomas Marchand Date: Thu, 5 Oct 2023 13:26:28 +0700 Subject: [PATCH] fix: remove proxy --- config.template.toml | 1 - src/main.rs | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/config.template.toml b/config.template.toml index c8fe914d..73917546 100644 --- a/config.template.toml +++ b/config.template.toml @@ -43,7 +43,6 @@ oauth2_secret = "xxxxxx" app_link = "https://starknet.quest" api_link = "https://api.starknet.quest" is_testnet = false -proxy = "xxxxx" rpc_url = "xxxxx" [starkscan] diff --git a/src/main.rs b/src/main.rs index 4f8c720c..92435e32 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use axum::{ Router, }; use mongodb::{bson::doc, options::ClientOptions, Client}; -use reqwest::{Proxy, Url}; +use reqwest::Url; use starknet::providers::{jsonrpc::HttpTransport, JsonRpcClient}; use std::net::SocketAddr; use std::sync::Arc; @@ -25,13 +25,6 @@ async fn main() { .await .unwrap(); - let client = match &conf.variables.proxy { - Some(proxy_url) => reqwest::Client::builder().proxy(Proxy::http(proxy_url).unwrap()), - None => reqwest::Client::builder(), - } - .build() - .unwrap(); - let shared_state = Arc::new(models::AppState { conf: conf.clone(), provider: JsonRpcClient::new(HttpTransport::new(