From 38ae2d3aee0980b56ce6a832b8af4cf3fe126f93 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Sun, 2 Jan 2022 10:11:13 -0300 Subject: [PATCH] fix(chainsync): Stop the consumer machine when intersect is not found (#14) --- pallas-chainsync/src/clients.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pallas-chainsync/src/clients.rs b/pallas-chainsync/src/clients.rs index 69fa64a..2573f79 100644 --- a/pallas-chainsync/src/clients.rs +++ b/pallas-chainsync/src/clients.rs @@ -131,7 +131,7 @@ where Ok(Self { tip: Some(tip), cursor: None, - state: State::Idle, + state: State::Done, ..self }) } @@ -145,7 +145,7 @@ where trace!("content: {:?}", content); } - debug!("reporint block to observer"); + debug!("reporting block to observer"); self.observer.on_block(&self.cursor, &content)?; Ok(Self {