diff options
Diffstat (limited to 'examples/zot/xchan.rs')
-rw-r--r-- | examples/zot/xchan.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/zot/xchan.rs b/examples/zot/xchan.rs index d2d73d0..2995d0b 100644 --- a/examples/zot/xchan.rs +++ b/examples/zot/xchan.rs @@ -25,9 +25,9 @@ pub enum Type { pub fn fetch(client: &zotapi::Client, _raw: bool, t: Type, id: &str) { let res = match t { - Type::Addr => client.xchan().by_address(&id).fetch(), - Type::Hash => client.xchan().by_hash(&id).fetch(), - Type::GUID => client.xchan().by_guid(&id).fetch(), + Type::Addr => zotapi::xchan().by_address(&id).fetch(&client), + Type::Hash => zotapi::xchan().by_hash(&id).fetch(&client), + Type::GUID => zotapi::xchan().by_guid(&id).fetch(&client), }; match res { |