From 06d950e653fec90a2be71d59e2e30073bfd0b7c6 Mon Sep 17 00:00:00 2001 From: James Prestwich Date: Wed, 30 Jun 2021 13:29:06 -0700 Subject: [PATCH] bug: kathy crash loop due to non-standard invocation --- rust/kathy/src/main.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rust/kathy/src/main.rs b/rust/kathy/src/main.rs index 2cb1d722a..ca12013e6 100644 --- a/rust/kathy/src/main.rs +++ b/rust/kathy/src/main.rs @@ -14,12 +14,8 @@ use optics_base::{agent::OpticsAgent, settings::log::Style}; use crate::{kathy::Kathy, settings::KathySettings as Settings}; async fn _main(settings: Settings) -> Result<()> { - let kathy = Kathy::from_settings(settings).await?; - - // Normally we would run_from_settings - // but for an empty replica vector that would do nothing - kathy.run("").await??; - + let relayer = Kathy::from_settings(settings).await?; + relayer.run_all().await?; Ok(()) }