Skip to content

Commit

Permalink
Merge pull request #562 from ok300/ok300-rename-vars
Browse files Browse the repository at this point in the history
Rename vars for clarity
  • Loading branch information
thesimplekid authored Jan 26, 2025
2 parents 1a7b43e + 9aa304d commit f2aa51f
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions crates/cdk-integration-tests/src/bin/regtest_mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,30 +178,29 @@ async fn main() -> Result<()> {
}
"SQLITE" => {
tokio::spawn(async move {
let sqlite_db = MintSqliteDatabase::new(&cln_mint_db_path)
let cln_sqlite_db = MintSqliteDatabase::new(&cln_mint_db_path)
.await
.expect("Could not create mint db");
sqlite_db.migrate().await;
create_mint(mint_addr, cln_mint_port, sqlite_db, cln_backend)
.expect("Could not create CLN mint db");
cln_sqlite_db.migrate().await;
create_mint(mint_addr, cln_mint_port, cln_sqlite_db, cln_backend)
.await
.expect("Could not start cln mint");
});

let sqlite_db = MintSqliteDatabase::new(&lnd_mint_db_path).await?;
sqlite_db.migrate().await;
create_mint(mint_addr, lnd_mint_port, sqlite_db, lnd_backend).await?;
let lnd_sqlite_db = MintSqliteDatabase::new(&lnd_mint_db_path).await?;
lnd_sqlite_db.migrate().await;
create_mint(mint_addr, lnd_mint_port, lnd_sqlite_db, lnd_backend).await?;
}
"REDB" => {
tokio::spawn(async move {
let redb_db = MintRedbDatabase::new(&cln_mint_db_path).unwrap();
create_mint(mint_addr, cln_mint_port, redb_db, cln_backend)
let cln_redb_db = MintRedbDatabase::new(&cln_mint_db_path).unwrap();
create_mint(mint_addr, cln_mint_port, cln_redb_db, cln_backend)
.await
.expect("Could not start cln mint");
});

let redb_db = MintRedbDatabase::new(&lnd_mint_db_path).unwrap();

create_mint(mint_addr, lnd_mint_port, redb_db, lnd_backend).await?;
let lnd_redb_db = MintRedbDatabase::new(&lnd_mint_db_path).unwrap();
create_mint(mint_addr, lnd_mint_port, lnd_redb_db, lnd_backend).await?;
}
_ => panic!("Unknown mint db type: {}", mint_db_kind),
};
Expand Down

0 comments on commit f2aa51f

Please sign in to comment.