Skip to content

Commit

Permalink
cdk-mintd: fix imports for starting mint with swagger feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 committed Oct 21, 2024
1 parent 345f3ad commit 60e87cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions crates/cdk-axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ mod swagger_imports {
pub use cdk::nuts::{MeltQuoteState, MintQuoteState};
}

#[cfg(feature = "swagger")]
use swagger_imports::*;

/// CDK Mint State
#[derive(Clone)]
pub struct MintState {
Expand Down
4 changes: 3 additions & 1 deletion crates/cdk-mintd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ use tokio::sync::{Mutex, Notify};
use tower_http::cors::CorsLayer;
use tracing_subscriber::EnvFilter;
use url::Url;
#[cfg(feature = "swagger")]
use utoipa::OpenApi;

mod cli;
mod config;
Expand Down Expand Up @@ -451,7 +453,7 @@ async fn main() -> anyhow::Result<()> {

// Checks the status of all pending melt quotes
// Pending melt quotes where the payment has gone through inputs are burnt
// Pending melt quotes where the paynment has **failed** inputs are reset to unspent
// Pending melt quotes where the payment has **failed** inputs are reset to unspent
check_pending_melt_quotes(Arc::clone(&mint), &ln_backends).await?;

let listen_addr = settings.info.listen_host;
Expand Down

0 comments on commit 60e87cb

Please sign in to comment.