Skip to content

Commit

Permalink
fix: fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
joschisan authored and joschisan committed Nov 6, 2024
1 parent 5c6b26d commit 76a727e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/fedimint-lnv2-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ use serde::{Deserialize, Serialize};
use serde_json::Value;
use thiserror::Error;
use tpe::{derive_agg_decryption_key, AggregateDecryptionKey};
use tracing::warn;

use crate::api::LightningFederationApi;
use crate::receive_sm::{ReceiveSMCommon, ReceiveSMState, ReceiveStateMachine};
Expand Down Expand Up @@ -415,7 +416,9 @@ impl LightningClientModule {
}
}

dbtx.commit_tx().await;
if let Err(e) = dbtx.commit_tx_result().await {
warn!("Failed to commit the updated gateway mapping to the database: {e}");
}
}
}

Expand Down

0 comments on commit 76a727e

Please sign in to comment.