aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
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);