From 34f528a3b4063b4a25915e60d7f22ee1fb2d1bd9 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Tue, 28 May 2024 15:14:34 +0200 Subject: jsonrpc: add comments & remove debugging code --- jsonrpc/examples/tokio_server/Cargo.toml | 2 +- jsonrpc/examples/tokio_server/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'jsonrpc/examples/tokio_server') diff --git a/jsonrpc/examples/tokio_server/Cargo.toml b/jsonrpc/examples/tokio_server/Cargo.toml index 80f424d..93d8a61 100644 --- a/jsonrpc/examples/tokio_server/Cargo.toml +++ b/jsonrpc/examples/tokio_server/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" [dependencies] env_logger = "0.11.3" -karyon_jsonrpc = { path = "../../", default-features = false, features = ["tokio"] } +karyon_jsonrpc = { path = "../../", default-features = false, features = ["tokio", "ws"] } serde = { version = "1.0.202", features = ["derive"] } serde_json = "1.0.117" tokio = { version = "1.37.0", features = ["full"] } diff --git a/jsonrpc/examples/tokio_server/src/main.rs b/jsonrpc/examples/tokio_server/src/main.rs index d70a46a..41d4c74 100644 --- a/jsonrpc/examples/tokio_server/src/main.rs +++ b/jsonrpc/examples/tokio_server/src/main.rs @@ -48,7 +48,7 @@ async fn main() { }; // Creates a new server - let server = Server::builder("tcp://127.0.0.1:6000") + let server = Server::builder("ws://127.0.0.1:6000") .expect("Create a new server builder") .service(Arc::new(calc)) .build() -- cgit v1.2.3