Skip to content

Commit

Permalink
fix: remove proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Oct 5, 2023
1 parent f27f28e commit 9f0c8d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion config.template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
9 changes: 1 addition & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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(
Expand Down

0 comments on commit 9f0c8d6

Please sign in to comment.