Function sn_client::client::attempt_bootstrap[][src]

pub async fn attempt_bootstrap(
    qp2p_config: QuicP2pConfig,
    keypair: Keypair,
    notifier: UnboundedSender<Error>
) -> Result<Session, Error>

Utility function that bootstraps a client to the network. If there is a failure then it retries. After a maximum of three attempts if the boostrap process still fails, then an error is returned.