fix(cli): databases were backwards

This commit is contained in:
thesimplekid
2024-06-12 15:22:46 +01:00
parent f68172b1bc
commit eb8bd373ad
2 changed files with 3 additions and 3 deletions

View File

@@ -73,8 +73,8 @@ async fn main() -> Result<()> {
let localstore: Arc<dyn WalletDatabase<Err = cdk_database::Error> + Send + Sync> = let localstore: Arc<dyn WalletDatabase<Err = cdk_database::Error> + Send + Sync> =
match args.engine.as_str() { match args.engine.as_str() {
"sqlite" => Arc::new(RedbWalletDatabase::new(DEFAULT_REDB_DB_PATH)?), "sqlite" => Arc::new(WalletSQLiteDatabase::new(DEFAULT_SQLITE_DB_PATH).await?),
"redb" => Arc::new(WalletSQLiteDatabase::new(DEFAULT_SQLITE_DB_PATH).await?), "redb" => Arc::new(RedbWalletDatabase::new(DEFAULT_REDB_DB_PATH)?),
_ => bail!("Unknown DB engine"), _ => bail!("Unknown DB engine"),
}; };

View File

@@ -20,7 +20,7 @@ pub struct ReceiveSubCommand {
#[arg(short, long, action = clap::ArgAction::Append)] #[arg(short, long, action = clap::ArgAction::Append)]
relay: Vec<String>, relay: Vec<String>,
/// Unix time to to query nostr from /// Unix time to to query nostr from
#[arg(short, long)] #[arg(long)]
since: Option<u64>, since: Option<u64>,
/// Preimage /// Preimage
#[arg(short, long, action = clap::ArgAction::Append)] #[arg(short, long, action = clap::ArgAction::Append)]