Skip to content

Commit

Permalink
Merge branch 'main' of github.com:GaloyMoney/stablesats-rs into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
git committed Jan 4, 2024
2 parents 49bc98f + cbcd705 commit 815fae1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ async fn run_cmd(

if let Some(okex_cfg) = exchanges.okex.as_ref() {
pool = Some(crate::db::init_pool(&db).await?);
ledger = Some(ledger::Ledger::init(&pool.as_ref().unwrap()).await?);
ledger = Some(ledger::Ledger::init(pool.as_ref().unwrap()).await?);

let okex_config = okex_cfg.config.clone();
let pool = pool.clone();
Expand Down Expand Up @@ -281,7 +281,7 @@ async fn run_cmd(

if pool.is_none() {
pool = Some(crate::db::init_pool(&db).await?);
ledger = Some(ledger::Ledger::init(&pool.as_ref().unwrap()).await?);
ledger = Some(ledger::Ledger::init(pool.as_ref().unwrap()).await?);
}
let quotes_send = send.clone();
let (snd, recv) = futures::channel::mpsc::unbounded();
Expand Down Expand Up @@ -314,7 +314,7 @@ async fn run_cmd(
println!("Starting user trades process");
if pool.is_none() {
pool = Some(crate::db::init_pool(&db).await?);
ledger = Some(ledger::Ledger::init(&pool.as_ref().unwrap()).await?);
ledger = Some(ledger::Ledger::init(pool.as_ref().unwrap()).await?);
}

let user_trades_send = send.clone();
Expand Down

0 comments on commit 815fae1

Please sign in to comment.