From 2bca2cc998c31cd8ffccc9b507a6be0f2263eb0c Mon Sep 17 00:00:00 2001 From: benthecarman Date: Tue, 18 Jun 2024 11:13:25 -0500 Subject: [PATCH] Don't block on gateway fees --- mutiny-core/src/federation.rs | 6 ------ mutiny-core/src/lib.rs | 2 -- 2 files changed, 8 deletions(-) diff --git a/mutiny-core/src/federation.rs b/mutiny-core/src/federation.rs index 7c0e63296..8284dfd7a 100644 --- a/mutiny-core/src/federation.rs +++ b/mutiny-core/src/federation.rs @@ -160,7 +160,6 @@ pub struct FederationIdentity { pub federation_name: Option, pub federation_expiry_timestamp: Option, pub welcome_message: Option, - pub gateway_fees: Option, // undocumented parameters that fedi uses: https://meta.dev.fedibtc.com/meta.json pub federation_icon_url: Option, pub meta_external_url: Option, @@ -873,12 +872,10 @@ impl FederationClient { } pub async fn get_mutiny_federation_identity(&self) -> FederationIdentity { - let gateway_fees = self.gateway_fee().await.ok(); get_federation_identity( self.uuid.clone(), self.fedimint_client.clone(), self.invite_code.clone(), - gateway_fees, self.logger.clone(), ) .await @@ -895,8 +892,6 @@ pub(crate) async fn get_federation_identity( uuid: String, fedimint_client: ClientHandleArc, invite_code: InviteCode, - gateway_fees: Option, - logger: Arc, ) -> FederationIdentity { let federation_id = fedimint_client.federation_id(); @@ -950,7 +945,6 @@ pub(crate) async fn get_federation_identity( fedimint_client.get_meta("welcome_message"), config.as_ref().and_then(|c| c.welcome_message.clone()), ), - gateway_fees, // Already merged using helper function... federation_icon_url: merge_values( fedimint_client.get_meta("federation_icon_url"), config.as_ref().and_then(|c| c.federation_icon_url.clone()), diff --git a/mutiny-core/src/lib.rs b/mutiny-core/src/lib.rs index 2f1ca827a..43a668bc7 100644 --- a/mutiny-core/src/lib.rs +++ b/mutiny-core/src/lib.rs @@ -3804,13 +3804,11 @@ pub(crate) async fn create_new_federation( storage.insert_federations(federation_mutex.clone()).await?; let federation_id = new_federation.fedimint_client.federation_id(); - let gateway_fees = new_federation.gateway_fee().await.ok(); let new_federation_identity = get_federation_identity( next_federation_uuid.clone(), new_federation.fedimint_client.clone(), federation_code.clone(), - gateway_fees, logger.clone(), ) .await;