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 2 months ago
commit 14f5512643b00121664719a064e96ae107c82a66
parent c7a647dafa6b4a7d594c08d1d50f60d78625d3c6
1 file changed +7 -0
modified crates/radicle-protocol/src/service.rs
@@ -1653,6 +1653,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",