diff --git a/crates/cdk-axum/src/lib.rs b/crates/cdk-axum/src/lib.rs index 3095507a..9083163b 100644 --- a/crates/cdk-axum/src/lib.rs +++ b/crates/cdk-axum/src/lib.rs @@ -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 { diff --git a/crates/cdk-mintd/src/main.rs b/crates/cdk-mintd/src/main.rs index 6f3c4c9f..5a48596c 100644 --- a/crates/cdk-mintd/src/main.rs +++ b/crates/cdk-mintd/src/main.rs @@ -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; @@ -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;