From 970df3ea4169eb2fe935a0f50012503079b8636d Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 3 Jan 2020 23:42:37 +0100 Subject: Make channel and network stream behave like the rest. --- examples/zot/channel_stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/zot/channel_stream.rs') 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); -- cgit v1.2.3