From 8c9eee6714ebed3985b07e2c6542af9c6f4974e8 Mon Sep 17 00:00:00 2001 From: sugyan Date: Sat, 23 Nov 2024 23:30:27 +0900 Subject: [PATCH] chore: Fix examples --- examples/concurrent/Cargo.toml | 4 ++-- examples/concurrent/src/main.rs | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/examples/concurrent/Cargo.toml b/examples/concurrent/Cargo.toml index 2f60b216..6a00735f 100644 --- a/examples/concurrent/Cargo.toml +++ b/examples/concurrent/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -atrium-api = "0.18.1" -atrium-xrpc-client = "0.4.0" +atrium-api = "0.24.8" +atrium-xrpc-client = "0.5.10" clap = { version = "4.5.1", features = ["derive"] } futures = "0.3.30" tokio = { version = "1.36.0", features = ["macros", "rt-multi-thread"] } diff --git a/examples/concurrent/src/main.rs b/examples/concurrent/src/main.rs index 21e2e05a..8340b842 100644 --- a/examples/concurrent/src/main.rs +++ b/examples/concurrent/src/main.rs @@ -36,9 +36,12 @@ async fn main() -> Result<(), Box> { .app .bsky .actor - .get_profile(atrium_api::app::bsky::actor::get_profile::Parameters { - actor: actor.parse().expect("invalid actor"), - }) + .get_profile( + atrium_api::app::bsky::actor::get_profile::ParametersData { + actor: actor.parse().expect("invalid actor"), + } + .into(), + ) .await }) }) @@ -46,7 +49,7 @@ async fn main() -> Result<(), Box> { let results = join_all(handles).await; println!("{} profiles fetched!", results.len()); for (actor, result) in actors.iter().zip(results) { - println!("{actor}: {:#?}", result?); + println!("{actor}: {:?}", result?); } Ok(()) }