File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,17 @@ const TAG: &str = "3.9.0";
14
14
/// # Example
15
15
///
16
16
/// ```
17
- /// use testcontainers_modules::{zookeeper, testcontainers::runners::AsyncRunner};
17
+ /// use testcontainers_modules::{testcontainers::runners::AsyncRunner, zookeeper };
18
18
/// # tokio::runtime::Runtime::new().unwrap().block_on(async {
19
- /// let node = zookeeper::Zookeeper::default().start().await?;
20
- /// let zk_url = format!("{}:{}",node.get_host().await?,node.get_host_port_ipv4(2181).await?);
19
+ /// let node = zookeeper::Zookeeper::default().start().await.unwrap();
20
+ /// let zk_url = format!(
21
+ /// "{}:{}",
22
+ /// node.get_host().await.unwrap(),
23
+ /// node.get_host_port_ipv4(2181).await.unwrap()
24
+ /// );
21
25
/// let client = zookeeper_client::Client::connect(&zk_url)
22
- /// .await
23
- /// .expect("connect to Zookeeper");
26
+ /// .await
27
+ /// .expect("connect to Zookeeper");
24
28
///
25
29
/// let path = "/test";
26
30
/// let (_, stat_watcher) = client
You can’t perform that action at this time.
0 commit comments