aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/zot/xchan.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/zot/xchan.rs b/examples/zot/xchan.rs
index 2995d0b..088d49c 100644
--- a/examples/zot/xchan.rs
+++ b/examples/zot/xchan.rs
@@ -25,14 +25,14 @@ pub enum Type {
pub fn fetch(client: &zotapi::Client, _raw: bool, t: Type, id: &str) {
let res = match t {
- 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),
+ Type::Addr => zotapi::XChan::z().by_address(&id).fetch(&client),
+ Type::Hash => zotapi::XChan::z().by_hash(&id).fetch(&client),
+ Type::GUID => zotapi::XChan::z().by_guid(&id).fetch(&client),
};
match res {
Ok(payload) => {
- println!("{}", payload);
+ println!("{:?}", payload);
}
Err(e) => {
println!("{:?}", e);