aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-01-03 23:42:37 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-01-03 23:42:37 +0100
commit970df3ea4169eb2fe935a0f50012503079b8636d (patch)
tree4b339e01e957ecf63e7a0d9a67ceabc77496e3d3 /examples
parent0c76f0c9727a512475e29b5d099b5b7188f72052 (diff)
downloadrust-zotapi-970df3ea4169eb2fe935a0f50012503079b8636d.tar.gz
rust-zotapi-970df3ea4169eb2fe935a0f50012503079b8636d.tar.bz2
rust-zotapi-970df3ea4169eb2fe935a0f50012503079b8636d.zip
Make channel and network stream behave like the rest.
Diffstat (limited to 'examples')
-rw-r--r--examples/zot/channel_stream.rs2
-rw-r--r--examples/zot/network_stream.rs2
2 files changed, 2 insertions, 2 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);
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);