From 56139b17156b0df337c0e811b3baa4f809963d2a Mon Sep 17 00:00:00 2001 From: James Prestwich Date: Wed, 30 Jun 2021 13:40:10 -0700 Subject: [PATCH] bug: remove leftover dbg --- rust/kathy/src/main.rs | 4 ++-- rust/optics-base/bin/example.rs | 1 - rust/optics-core/src/lib.rs | 2 -- rust/processor/src/prover/mod.rs | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/rust/kathy/src/main.rs b/rust/kathy/src/main.rs index ca12013e6..4e7262ef0 100644 --- a/rust/kathy/src/main.rs +++ b/rust/kathy/src/main.rs @@ -14,8 +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 relayer = Kathy::from_settings(settings).await?; - relayer.run_all().await?; + let kathy = Kathy::from_settings(settings).await?; + kathy.run_all().await?; Ok(()) } diff --git a/rust/optics-base/bin/example.rs b/rust/optics-base/bin/example.rs index 0eb6bee07..dcd571458 100644 --- a/rust/optics-base/bin/example.rs +++ b/rust/optics-base/bin/example.rs @@ -40,7 +40,6 @@ fn setup() -> Result { #[allow(dead_code)] fn main() -> Result<()> { let _settings = setup()?; - dbg!(_settings); // tokio::runtime::Builder::new_current_thread() // .enable_all() // .build() diff --git a/rust/optics-core/src/lib.rs b/rust/optics-core/src/lib.rs index ca899f3a5..1841e1516 100644 --- a/rust/optics-core/src/lib.rs +++ b/rust/optics-core/src/lib.rs @@ -395,7 +395,6 @@ impl Decode for SignedUpdate { impl SignedUpdate { /// Recover the Ethereum address of the signer pub fn recover(&self) -> Result { - dbg!(self.update.prepended_hash()); Ok(self.signature.recover(self.update.prepended_hash())?) } @@ -457,7 +456,6 @@ pub struct SignedFailureNotification { impl SignedFailureNotification { /// Recover the Ethereum address of the signer pub fn recover(&self) -> Result { - dbg!(self.notification.prepended_hash()); Ok(self.signature.recover(self.notification.prepended_hash())?) } diff --git a/rust/processor/src/prover/mod.rs b/rust/processor/src/prover/mod.rs index 3cfea1a66..a3f6f623c 100644 --- a/rust/processor/src/prover/mod.rs +++ b/rust/processor/src/prover/mod.rs @@ -192,7 +192,6 @@ mod test { // assert the tree generates the proper proof for this leaf let proof = tree.prove(n).unwrap(); assert_eq!(proof, test_case.proofs[n]); - dbg!(&proof); // check that the tree can verify the proof for this leaf tree.verify(&proof).unwrap();