Skip to content

Commit

Permalink
fix: broken async py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed Apr 27, 2024
1 parent 50ef232 commit 1eeb284
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fedimint-clientd/src/router/handlers/ln/pay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use serde_json::{json, Value};
use tracing::{error, info};

use crate::error::AppError;
use crate::router::handlers::fedimint::ln::{get_invoice, wait_for_ln_payment};
use crate::router::handlers::ln::{get_invoice, wait_for_ln_payment};
use crate::state::AppState;

#[derive(Debug, Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion fedimint-clientd/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::time::{SystemTime, UNIX_EPOCH};
use anyhow::{anyhow, Result};

// Helper function to convert SystemTime to u64
pub fn system_time_to_u64(time: SystemTime) -> Result<u64> {
pub fn _system_time_to_u64(time: SystemTime) -> Result<u64> {
match time.duration_since(UNIX_EPOCH) {
Ok(duration) => Ok(duration.as_secs()), // Converts to seconds
Err(_) => Err(anyhow!("some error")),
Expand Down
2 changes: 1 addition & 1 deletion wrappers/fedimint-py/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def main():
)

# Pay the invoice
fedimint_client.lightning.pay(data["invoice"], None, None)
await fedimint_client.lightning.pay(data["invoice"], None, None)
print("Paid locked invoice!")

# `/v2/ln/claim-external-pubkey-tweaked`
Expand Down

0 comments on commit 1eeb284

Please sign in to comment.