[][src]Function iota_client::add_neighbors

pub fn add_neighbors(
    uri: &str,
    uris: &[String]
) -> Result<AddNeighborsResponse, Error>

Add a list of neighbors to your node. It should be noted that this is only temporary, and the added neighbors will be removed from your set of neighbors after you relaunch IRI.

use iota_client;
let resp = iota_client::add_neighbors("https://node01.iotatoken.nl", &vec!["".into()]).unwrap();
println!("{:?}", resp);