diff options
Diffstat (limited to 'client/src/download.rs')
-rw-r--r-- | client/src/download.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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(()) } } |