Skip to content

Commit 64926e7

Browse files
committed
Add error handler
Now we anyway return empty quote - even if mint still didn't produce it.
1 parent ed4321f commit 64926e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/web/handlers/quotes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::bill::get_signer_public_data_and_keys;
1+
use super::bill::{get_current_identity_node_id, get_signer_public_data_and_keys};
22
use super::middleware::IdentityCheck;
33
use crate::external;
44
use crate::external::mint::{
@@ -24,7 +24,7 @@ pub async fn return_quote(
2424
let bill_id_hex = hex::encode(bill_id_u8);
2525
let copy_id_hex = bill_id_hex.clone();
2626

27-
let local_node_id = state.identity_service.get_identity().await?.node_id;
27+
let local_node_id = get_current_identity_node_id(&state).await;
2828
if !quote.bill_id.is_empty() && quote.quote_id.is_empty() {
2929
// Usage of thread::spawn is necessary here, because we spawn a new tokio runtime in the
3030
// thread, but this logic will be replaced soon

0 commit comments

Comments
 (0)