diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-18 22:04:31 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-18 22:14:37 +0100 |
commit | 542e1e9dc50a96a36ab9d4236293cd0a4f5d22c3 (patch) | |
tree | 89905044c44e1af21ab79b150b85011f96efa8fe /lib/src/client.rs | |
parent | 7675eba9244475c3847fd48eb13b5d8b54cf271c (diff) |
Shrink idea of "Reactors"
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>
Diffstat (limited to 'lib/src/client.rs')
0 files changed, 0 insertions, 0 deletions