From 8b6a7c00346b646ba94d32ea66903f6068e59cb4 Mon Sep 17 00:00:00 2001 From: adz Date: Sat, 16 Nov 2024 17:27:47 +0100 Subject: [PATCH] Add a comment --- rhio/src/node/actor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rhio/src/node/actor.rs b/rhio/src/node/actor.rs index d34d166c..b0562e0f 100644 --- a/rhio/src/node/actor.rs +++ b/rhio/src/node/actor.rs @@ -305,6 +305,8 @@ impl NodeActor { let network_message = NetworkMessage::from_bytes(&bytes)?; match network_message.payload { NetworkPayload::BlobAnnouncement(hash, bucket, key, size) => { + // We're interested in a bucket from a _specific_ public key. Filter out everything + // which is not the right bucket name or not the right author. if is_bucket_matching(&self.subscriptions, &bucket) { self.blobs .download(hash, bucket.bucket_name(), key, size)