aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc')
-rw-r--r--jsonrpc/Cargo.toml6
-rw-r--r--jsonrpc/README.md4
2 files changed, 5 insertions, 5 deletions
diff --git a/jsonrpc/Cargo.toml b/jsonrpc/Cargo.toml
index 5a7c2ba..3c5bf17 100644
--- a/jsonrpc/Cargo.toml
+++ b/jsonrpc/Cargo.toml
@@ -30,10 +30,10 @@ tokio = [
]
[dependencies]
-karyon_core = { version = "0.1.3", path = "../core", default-features = false }
-karyon_net = { version = "0.1.3", path = "../net", default-features = false }
+karyon_core = { version = "0.1.4", path = "../core", default-features = false }
+karyon_net = { version = "0.1.4", path = "../net", default-features = false }
-karyon_jsonrpc_macro = { version = "0.1.3", path = "jsonrpc_macro", default-features = false }
+karyon_jsonrpc_macro = { version = "0.1.4", path = "jsonrpc_macro", default-features = false }
log = "0.4.21"
rand = "0.8.5"
diff --git a/jsonrpc/README.md b/jsonrpc/README.md
index ca0a212..83107d4 100644
--- a/jsonrpc/README.md
+++ b/jsonrpc/README.md
@@ -31,8 +31,7 @@ use serde_json::Value;
use smol::stream::StreamExt;
use karyon_jsonrpc::{
- RPCError, Server, Client, rpc_impl, rpc_pubsub_impl, message::SubscriptionID,
- Channel
+ RPCError, Server, Client, rpc_impl, rpc_pubsub_impl, SubscriptionID, Channel
};
struct HelloWorld {}
@@ -126,6 +125,7 @@ async {
})
.detach();
+ // Unsubscribe after 5 seconds
smol::Timer::after(std::time::Duration::from_secs(5)).await;
client