pub async fn sync_with_peer(
peer: &PeerId,
p2p_node: &Arc<P2PNode>,
storage: &Arc<LmdbStorage>,
paid_list: &Arc<PaidList>,
config: &ReplicationConfig,
is_bootstrapping: bool,
) -> Option<NeighborSyncResponse>Expand description
Execute a sync session with a single peer.
Returns the response hints if sync succeeded, or None if the peer
was unreachable or the response could not be decoded.