From 13b7805e7e6fcf47e0a1318adcc25b4ab773a3c9 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 25 Feb 2023 02:36:42 +0100 Subject: [PATCH] docs(sdk): fix missing await in connect --- crates/dagger-sdk/README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/dagger-sdk/README.md b/crates/dagger-sdk/README.md index 965e914..52a1d7f 100644 --- a/crates/dagger-sdk/README.md +++ b/crates/dagger-sdk/README.md @@ -27,7 +27,7 @@ cargo add dagger-sdk ```rust #[tokio::main] async fn main() -> eyre::Result<()> { - let client = dagger_sdk::connect()?; + let client = dagger_sdk::connect().await?; let version = client .container() @@ -46,9 +46,3 @@ And run it like a normal application: ```bash cargo run ``` - -### Disclaimer - -You are free to use something else than `tokio`, I haven't tested it with -anything else, but it should work with any other runtime. We don't rely on it -specifically. That might change in the future though.