diff --git a/crates/radicle/src/node.rs b/crates/radicle/src/node.rs index 6e873bcd7..0f39925d4 100644 --- a/crates/radicle/src/node.rs +++ b/crates/radicle/src/node.rs @@ -1413,9 +1413,9 @@ impl Handle for Node { } fn announce_inventory(&mut self) -> Result<(), Error> { - for line in self.call::(Command::AnnounceInventory, DEFAULT_TIMEOUT)? { - line?; - } + self.call::(Command::AnnounceInventory, DEFAULT_TIMEOUT)? + .next() + .ok_or(Error::EmptyResponse)??; Ok(()) }