From 1f363f92764004cd18bb3283e03f354cf2995e2b Mon Sep 17 00:00:00 2001
From: Benno Zeeman <bzeeman@live.nl>
Date: Mon, 16 Dec 2024 17:08:23 +0100
Subject: [PATCH] doc(autonomi): replace connect with init in doctest

---
 autonomi/src/client/data/mod.rs | 4 ++--
 autonomi/src/client/mod.rs      | 2 +-
 autonomi/tests/evm/file.rs      | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

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<dyn std::error::Error>> {
-    /// # 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<dyn std::error::Error>> {
-    /// # 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"))?;