Skip to content

Commit 8c9eee6

Browse files
committed
chore: Fix examples
1 parent a225fe6 commit 8c9eee6

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

examples/concurrent/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
atrium-api = "0.18.1"
10-
atrium-xrpc-client = "0.4.0"
9+
atrium-api = "0.24.8"
10+
atrium-xrpc-client = "0.5.10"
1111
clap = { version = "4.5.1", features = ["derive"] }
1212
futures = "0.3.30"
1313
tokio = { version = "1.36.0", features = ["macros", "rt-multi-thread"] }

examples/concurrent/src/main.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,20 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
3636
.app
3737
.bsky
3838
.actor
39-
.get_profile(atrium_api::app::bsky::actor::get_profile::Parameters {
40-
actor: actor.parse().expect("invalid actor"),
41-
})
39+
.get_profile(
40+
atrium_api::app::bsky::actor::get_profile::ParametersData {
41+
actor: actor.parse().expect("invalid actor"),
42+
}
43+
.into(),
44+
)
4245
.await
4346
})
4447
})
4548
.collect::<Vec<_>>();
4649
let results = join_all(handles).await;
4750
println!("{} profiles fetched!", results.len());
4851
for (actor, result) in actors.iter().zip(results) {
49-
println!("{actor}: {:#?}", result?);
52+
println!("{actor}: {:?}", result?);
5053
}
5154
Ok(())
5255
}

0 commit comments

Comments
 (0)