minor changes

This commit is contained in:
Godmode Galactus 2023-04-13 10:22:28 +02:00
parent eedebd9ff4
commit b1277ac5fe
No known key found for this signature in database
GPG Key ID: A04142C71ABB0DEA
2 changed files with 11 additions and 8 deletions

View File

@ -147,6 +147,15 @@ pub async fn main() -> anyhow::Result<()> {
.iter()
.map(|x| Pubkey::from_str(x.as_str()).unwrap())
.collect();
clean_market_makers(
nb_rpc_client.clone(),
&account_keys_parsed,
&perp_market_caches,
blockhash.clone(),
)
.await;
// start keeper if keeper authority is present
let keepers_jl = if let Some(keeper_authority) = keeper_authority {
let jl = start_keepers(
@ -183,13 +192,7 @@ pub async fn main() -> anyhow::Result<()> {
);
let warmup_duration = Duration::from_secs(10);
clean_market_makers(
nb_rpc_client.clone(),
&account_keys_parsed,
&perp_market_caches,
blockhash.clone(),
)
.await;
info!("waiting for keepers to warmup for {warmup_duration:?}");
tokio::time::sleep(warmup_duration).await;

View File

@ -352,5 +352,5 @@ pub async fn clean_market_makers(
}
futures::future::join_all(tasks).await;
info!("finished cleaning");
info!("finished cleaning market makers");
}