Zebra/zebra-network/src/peer_set
teor 5424e1d8ba
Fix candidate set address state handling (#1709)
Design:
- Add a `PeerAddrState` to each `MetaAddr`
- Use a single peer set for all peers, regardless of state
- Implement time-based liveness as an `AddressBook` method, rather than
  a `PeerAddrState` variant
- Delete `AddressBook.by_state`

Implementation:
- Simplify `AddressBook` changes using `update` and `take` modifier
  methods
- Simplify the `AddressBook` iterator implementation, replacing it with
  methods that are more obviously correct
- Consistently collect peer set metrics

Documentation:
- Expand and update the peer set documentation

We can optimise later, but for now we want simple code that is more
obviously correct.
2021-02-18 11:18:32 +10:00
..
candidate_set.rs Fix candidate set address state handling (#1709) 2021-02-18 11:18:32 +10:00
initialize.rs Log initial peer connection failures 2021-02-17 09:21:53 -05:00
inventory_registry.rs Remove a redundant pattern match 2020-12-13 22:10:05 -05:00
set.rs Update PeerSet metrics after every change (#1727) 2021-02-18 07:06:59 +10:00
unready_service.rs Upgrade tokio, futures, hyper to released versions. 2019-12-13 17:42:15 -05:00