mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 22:10:31 +08:00
node: Fix routing table update on refs
The announcer is always the one who must have the refs, not the relayer. This was changed in a recent patch.
This commit is contained in:
@@ -873,14 +873,14 @@ where
|
||||
// from a new repository being initialized.
|
||||
if let Ok(updated) = self
|
||||
.routing
|
||||
.insert(message.rid, *relayer, message.timestamp)
|
||||
.insert(message.rid, *announcer, message.timestamp)
|
||||
{
|
||||
if updated {
|
||||
self.emitter.emit(Event::SeedDiscovered {
|
||||
rid: message.rid,
|
||||
nid: *relayer,
|
||||
});
|
||||
info!(target: "service", "Routing table updated for {} with seed {relayer}", message.rid);
|
||||
info!(target: "service", "Routing table updated for {} with seed {announcer}", message.rid);
|
||||
}
|
||||
}
|
||||
// Discard announcement messages we've already seen, otherwise update
|
||||
|
||||
Reference in New Issue
Block a user