aboutsummaryrefslogtreecommitdiffstats
path: root/examples/zot/network_stream.rs
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/zot/network_stream.rs
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/zot/network_stream.rs')
-rw-r--r--examples/zot/network_stream.rs2
1 files changed, 1 insertions, 1 deletions
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);