diff --git a/autonomi/src/client/data/mod.rs b/autonomi/src/client/data/mod.rs index f1b35083b4..e64c6872e4 100644 --- a/autonomi/src/client/data/mod.rs +++ b/autonomi/src/client/data/mod.rs @@ -167,7 +167,7 @@ impl Client { /// use autonomi::{Client, Bytes}; /// # #[tokio::main] /// # async fn main() -> Result<(), Box> { - /// # let client = Client::connect(&[]).await?; + /// # let client = Client::init().await?; /// # let data_map = todo!(); /// let data_fetched = client.data_get(data_map).await?; /// # Ok(()) @@ -195,7 +195,7 @@ impl Client { /// use autonomi::{Client, Bytes}; /// # #[tokio::main] /// # async fn main() -> Result<(), Box> { - /// # let client = Client::connect(&[]).await?; + /// # let client = Client::init().await?; /// # let wallet = todo!(); /// let data = Bytes::from("Hello, World"); /// let data_map = client.data_put(data, wallet).await?; diff --git a/autonomi/src/client/mod.rs b/autonomi/src/client/mod.rs index 9f315ce765..f245833b91 100644 --- a/autonomi/src/client/mod.rs +++ b/autonomi/src/client/mod.rs @@ -98,7 +98,7 @@ impl Default for ClientConfig { } } -/// Error returned by [`Client::connect`]. +/// Error returned by [`Client::init`]. #[derive(Debug, thiserror::Error)] pub enum ConnectError { /// Did not manage to populate the routing table with enough peers. diff --git a/autonomi/tests/evm/file.rs b/autonomi/tests/evm/file.rs index 228efa1ed1..0c2aff9fe6 100644 --- a/autonomi/tests/evm/file.rs +++ b/autonomi/tests/evm/file.rs @@ -47,7 +47,7 @@ mod test { async fn file_into_vault() -> eyre::Result<()> { common::enable_logging(); - let mut client = Client::connect(&[]) + let mut client = Client::init() .await? .with_vault_entropy(Bytes::from("at least 32 bytes of entropy here"))?; @@ -66,7 +66,7 @@ mod test { ); // now assert over the stored account packet - let new_client = Client::connect(&[]) + let new_client = Client::init() .await? .with_vault_entropy(Bytes::from("at least 32 bytes of entropy here"))?;