mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-22 23:25:22 +01:00
fix(cli): databases were backwards
This commit is contained in:
@@ -73,8 +73,8 @@ async fn main() -> Result<()> {
|
||||
|
||||
let localstore: Arc<dyn WalletDatabase<Err = cdk_database::Error> + Send + Sync> =
|
||||
match args.engine.as_str() {
|
||||
"sqlite" => Arc::new(RedbWalletDatabase::new(DEFAULT_REDB_DB_PATH)?),
|
||||
"redb" => Arc::new(WalletSQLiteDatabase::new(DEFAULT_SQLITE_DB_PATH).await?),
|
||||
"sqlite" => Arc::new(WalletSQLiteDatabase::new(DEFAULT_SQLITE_DB_PATH).await?),
|
||||
"redb" => Arc::new(RedbWalletDatabase::new(DEFAULT_REDB_DB_PATH)?),
|
||||
_ => bail!("Unknown DB engine"),
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ pub struct ReceiveSubCommand {
|
||||
#[arg(short, long, action = clap::ArgAction::Append)]
|
||||
relay: Vec<String>,
|
||||
/// Unix time to to query nostr from
|
||||
#[arg(short, long)]
|
||||
#[arg(long)]
|
||||
since: Option<u64>,
|
||||
/// Preimage
|
||||
#[arg(short, long, action = clap::ArgAction::Append)]
|
||||
|
||||
Reference in New Issue
Block a user