diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-06 18:54:00 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-06 18:54:00 +0100 |
commit | 6af8b165fe8cbab35721a8797ca85cda454a5ff4 (patch) | |
tree | 05006c8b378dca5f033a72b0f0b3196fb8691423 /client/src/download.rs | |
parent | 14d348febd549b944d03030bf748f7817a2bedac (diff) | |
download | weareserver-6af8b165fe8cbab35721a8797ca85cda454a5ff4.tar weareserver-6af8b165fe8cbab35721a8797ca85cda454a5ff4.tar.bz2 weareserver-6af8b165fe8cbab35721a8797ca85cda454a5ff4.tar.zst |
new network
Diffstat (limited to 'client/src/download.rs')
-rw-r--r-- | client/src/download.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/download.rs b/client/src/download.rs index dfd7ff0..8e1686a 100644 --- a/client/src/download.rs +++ b/client/src/download.rs @@ -34,8 +34,8 @@ impl Downloader { pub fn packet(&mut self, p: &Packet) -> Result<()> { match p { Packet::RespondResource(d) => { - let key = Resource(sha256(&d)); - self.store.set(&d)?; + let key = Resource(sha256(&d.0)); + self.store.set(&d.0)?; self.need.remove(&key); self.pending.remove(&key); if self.have.insert(key) { |