Browse Source

Rename `cleanup` module to `housekeeping`

upload-correct-windows-binary
Thomas Eizinger 3 years ago
parent
commit
a49e1d342f
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 0
      daemon/src/housekeeping.rs
  2. 4
      daemon/src/maker.rs
  3. 4
      daemon/src/taker.rs

0
daemon/src/cleanup.rs → daemon/src/housekeeping.rs

4
daemon/src/maker.rs

@ -21,8 +21,8 @@ use xtra::spawn::TokioGlobalSpawnExt;
mod actors;
mod auth;
mod bitmex_price_feed;
mod cleanup;
mod db;
mod housekeeping;
mod keypair;
mod logger;
mod maker_cfd;
@ -151,7 +151,7 @@ async fn main() -> Result<()> {
};
let mut conn = db.acquire().await.unwrap();
cleanup::transition_non_continue_cfds_to_setup_failed(&mut conn)
housekeeping::transition_non_continue_cfds_to_setup_failed(&mut conn)
.await
.unwrap();
let cfds = load_all_cfds(&mut conn).await.unwrap();

4
daemon/src/taker.rs

@ -23,8 +23,8 @@ use xtra::Actor;
mod actors;
mod bitmex_price_feed;
mod cleanup;
mod db;
mod housekeeping;
mod keypair;
mod logger;
mod model;
@ -153,7 +153,7 @@ async fn main() -> Result<()> {
};
let mut conn = db.acquire().await.unwrap();
cleanup::transition_non_continue_cfds_to_setup_failed(&mut conn)
housekeeping::transition_non_continue_cfds_to_setup_failed(&mut conn)
.await
.unwrap();
let cfds = load_all_cfds(&mut conn).await.unwrap();

Loading…
Cancel
Save