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 +- examples/zot/network_stream.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/zot') 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); diff --git a/examples/zot/network_stream.rs b/examples/zot/network_stream.rs index 6dc1a0c..0e6edb4 100644 --- a/examples/zot/network_stream.rs +++ b/examples/zot/network_stream.rs @@ -21,7 +21,7 @@ use serde_json; use std::iter::Iterator; pub fn fetch(client: &zotapi::Client, raw: bool) { - match client.network_stream() { + match zotapi::network_stream().fetch(&client) { Ok(payload) => { if raw { println!("{}", payload); -- cgit v1.2.3