Skip to main content

peer_cache_updater

Function peer_cache_updater 

Source
pub async fn peer_cache_updater(
    config: Config,
    address_book_service: Buffer<BoxService<AddressBookRequest, AddressBookResponse, BoxError>, AddressBookRequest>,
) -> Result<(), BoxError>
Expand description

An ongoing task that regularly caches the current peers to disk, based on config.