From 7121bb7c49fcf5b24795c77100cb1ff46097ecb6 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 12 Jan 2025 12:08:56 +0100 Subject: add scale and z_up arguments --- client/src/download.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/src/download.rs') diff --git a/client/src/download.rs b/client/src/download.rs index 85cce32..2d61a53 100644 --- a/client/src/download.rs +++ b/client/src/download.rs @@ -84,7 +84,11 @@ impl Downloader { pub fn update(&self, network: &Network) -> Result<()> { let mut state = self.inner.write().unwrap(); let mut new_pending = Vec::new(); - for n in state.need.difference(&state.pending) { + for n in state + .need + .difference(&state.pending) + .take(32 - state.pending.len()) + { network .packet_send .send(Packet::RequestResource(*n)) -- cgit v1.2.3-70-g09d2