aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/examples
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc/examples')
-rw-r--r--jsonrpc/examples/pubsub_client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonrpc/examples/pubsub_client.rs b/jsonrpc/examples/pubsub_client.rs
index 73570b8..bbfd9b4 100644
--- a/jsonrpc/examples/pubsub_client.rs
+++ b/jsonrpc/examples/pubsub_client.rs
@@ -19,7 +19,7 @@ async fn run_client() {
let clientc = client.clone();
smol::spawn(async move {}).detach();
- let (_, sub) = client
+ let sub = client
.subscribe("Calc.log_subscribe", ())
.await
.expect("Subscribe to log_subscribe method");
@@ -33,7 +33,7 @@ async fn run_client() {
.detach();
loop {
- Timer::after(Duration::from_secs(1)).await;
+ Timer::after(Duration::from_millis(500)).await;
let _: Pong = clientc
.call("Calc.ping", ())
.await