async fn limit_initial_peers(
config: &Config,
address_book_service: &Buffer<BoxService<AddressBookRequest, AddressBookResponse, BoxError>, AddressBookRequest>,
) -> HashSet<PeerSocketAddr>Expand description
Limit the number of initial_peers addresses entries to the configured
peerset_initial_target_size.
Returns randomly chosen entries from the provided set of addresses, in a random order.
Also adds every initial peer to the address book, before returning.