Skip to content

Commit

Permalink
jsonrpc: main example clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hozan23 committed May 22, 2024
1 parent 028940f commit 0d179b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jsonrpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async {
.expect("send a request");

let (sub_id, sub) = client
.subscribe("Calc.log_subscribe", ())
.subscribe("HelloWorld.log_subscribe", ())
.await
.expect("Subscribe to log_subscribe method");

Expand All @@ -116,7 +116,7 @@ async {
smol::Timer::after(std::time::Duration::from_secs(5)).await;

client
.unsubscribe("Calc.log_unsubscribe", sub_id)
.unsubscribe("HelloWorld.log_unsubscribe", sub_id)
.await
.expect("Unsubscribe from log_unsubscirbe method");
};
Expand Down
4 changes: 2 additions & 2 deletions jsonrpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ mod error;
pub mod message;
mod server;

pub use client::Client;
pub use client::{Client, ClientBuilder};
pub use error::{Error, Result};
pub use server::{
channel::{ArcChannel, Channel, Subscription, SubscriptionID},
pubsub_service::{PubSubRPCMethod, PubSubRPCService},
service::{RPCMethod, RPCService},
Server,
Server, ServerBuilder
};

pub use karyon_jsonrpc_macro::{rpc_impl, rpc_pubsub_impl};
Expand Down

0 comments on commit 0d179b0

Please sign in to comment.