Skip to content

Commit

Permalink
Merge branch 'master' into feat/add_braavos_quests
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Oct 10, 2023
2 parents a284eb5 + 4211e55 commit d14c426
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 d14c426

Please sign in to comment.