Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
protocol: note on peering and fetches
Adrian Duke committed 3 months ago
commit f9245edf2bc976f00676978af7cbc0e5c892c206
parent 5aeb5011e5c19ecf9b283d01fa24e024a13323c3
1 file changed +7 -0
modified crates/radicle-protocol/src/service.rs
@@ -1723,6 +1723,13 @@ where
                // Refs can be relayed by peers who don't have the data in storage,
                // therefore we only check whether we are connected to the *announcer*,
                // which is required by the protocol to only announce refs it has.
+
                //
+
                // TODO(Ade): Perhaps it makes sense in a more peer-to-peer arrangement
+
                // to establish connections to peers whom you follow but aren't directly connected
+
                // to. E.g. Alice <--> Bob <--> Eve
+
                // Alice follows Eve, Eve announces refs of interest but because Alice
+
                // is not directly connected she cant see said refs if Bob isn't also interested in
+
                // Eve's refs.
                let Some(remote) = self.sessions.get(announcer).cloned() else {
                    trace!(
                        target: "service",