node: Fix redundant announcements

This change makes sure that nodes don't gossip announcements back to
the announcers.

Since the tests were relying on this mechanism to populate the routing
table, we had to change a few more things, such as adding the inventory
to the node's routing table.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2023-01-18 08:48:33 +01:00
parent 3d04849b7b
commit f33e79f14b
4 changed files with 133 additions and 68 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ where
info!("{}: Initializing: address = {}", self.name, self.ip);
self.initialized = true;
self.service.initialize(LocalTime::now());
self.service.initialize(LocalTime::now()).unwrap();
}
}