aboutsummaryrefslogtreecommitdiffstats
path: root/examples/zot/channel_stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/zot/channel_stream.rs')
-rw-r--r--examples/zot/channel_stream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/zot/channel_stream.rs b/examples/zot/channel_stream.rs
index b50f93f..bad7152 100644
--- a/examples/zot/channel_stream.rs
+++ b/examples/zot/channel_stream.rs
@@ -21,7 +21,7 @@ use serde_json;
use std::iter::Iterator;
pub fn fetch(client: &zotapi::Client, raw: bool) {
- match client.channel_stream() {
+ match zotapi::channel_stream().fetch(&client) {
Ok(payload) => {
if raw {
println!("{}", payload);