summaryrefslogtreecommitdiffstats
path: root/lib/src/gossip/mod.rs
AgeCommit message (Collapse)Author
2021-12-29Remove the GossipHandler, handle in code directlyMatthias Beyer
Use the iced idea of how to act on events rather than having a type for handling gossip messages. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-12-19Implement gossip reactor loading via oneshot channels for subscription ↵Matthias Beyer
initialization Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-12-18Shrink idea of "Reactors"Matthias Beyer
A Reactor can be waaay less complex if we simply use it as "map"-helper for mapping over `Stream`s. If we map over a stream of Vec<u8> and deserialize them to GossipMessages in one step, and handle them appropriately in the next step, it is way less complex to implement these things and we do not have to care about this whole "how do I shut down the thing" because we can simply drop() everything and let the destructors do their job. This patch removes the Reactor nonsense. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>