Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
docs(sdk): fix missing await in connect
Browse files Browse the repository at this point in the history
  • Loading branch information
kjuulh committed Feb 25, 2023
1 parent 4381af0 commit 13b7805
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/dagger-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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.

0 comments on commit 13b7805

Please sign in to comment.