From 44ef37bca0aa633f8c59d849946faf2319c5446b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 6 Jan 2025 20:04:29 +0100 Subject: a --- client/src/download.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/download.rs') diff --git a/client/src/download.rs b/client/src/download.rs index 8e1686a..48c38dc 100644 --- a/client/src/download.rs +++ b/client/src/download.rs @@ -46,7 +46,7 @@ impl Downloader { } Ok(()) } - pub fn update(&mut self, network: &mut Network) { + pub fn update(&mut self, network: &mut Network) -> Result<()> { let mut new_pending = Vec::new(); for n in self.need.difference(&self.pending) { network @@ -57,5 +57,6 @@ impl Downloader { new_pending.push(*n); } self.pending.extend(new_pending); + Ok(()) } } -- cgit v1.2.3-70-g09d2