1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-22 11:04:21 +00:00

Remove unnecessary reference

This commit is contained in:
Steffo 2024-08-08 00:42:32 +02:00
parent 0cda38bb3d
commit 2575f2429a
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -29,7 +29,7 @@ impl BroochService {
pub fn new(database_url: String, graphql_base_url: &str, stratz_token: &str, watched_guild_id: i64, min_players_to_process: usize, telegram_bot_token: String, notification_chat_id: ChatId, max_imp_wait: TimeDelta) -> AnyResult<Self> { pub fn new(database_url: String, graphql_base_url: &str, stratz_token: &str, watched_guild_id: i64, min_players_to_process: usize, telegram_bot_token: String, notification_chat_id: ChatId, max_imp_wait: TimeDelta) -> AnyResult<Self> {
log::info!("Initializing a new Brooch service..."); log::info!("Initializing a new Brooch service...");
let mut graphql_url = Url::parse(&graphql_base_url) let mut graphql_url = Url::parse(graphql_base_url)
.context("URL GraphQL non valido.")?; .context("URL GraphQL non valido.")?;
{ {
let mut graphql_url_params = graphql_url.query_pairs_mut(); let mut graphql_url_params = graphql_url.query_pairs_mut();