summaryrefslogtreecommitdiff
path: root/client/src/download.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/download.rs')
-rw-r--r--client/src/download.rs4
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) {