aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc
diff options
context:
space:
mode:
authorhozan23 <hozan23@proton.me>2024-03-20 15:20:21 +0100
committerhozan23 <hozan23@proton.me>2024-03-20 15:20:21 +0100
commit379dca552ca91d22ee007b42f93803ad3dc2b274 (patch)
tree1ba10573b6ec5213baf46f6ab9c3767e0daa4eed /jsonrpc
parent340957fec147f4429796413f27bbd9b84ba6f141 (diff)
core: add the option to create a new task group without providing an
executor & remove GlobalExecutor type
Diffstat (limited to 'jsonrpc')
-rw-r--r--jsonrpc/Cargo.toml1
-rw-r--r--jsonrpc/src/server.rs5
2 files changed, 2 insertions, 4 deletions
diff --git a/jsonrpc/Cargo.toml b/jsonrpc/Cargo.toml
index 5edc317..73ae275 100644
--- a/jsonrpc/Cargo.toml
+++ b/jsonrpc/Cargo.toml
@@ -2,6 +2,7 @@
name = "karyon_jsonrpc"
version.workspace = true
edition.workspace = true
+autoexamples = false
[dependencies]
karyon_core.workspace = true
diff --git a/jsonrpc/src/server.rs b/jsonrpc/src/server.rs
index b090d5c..ac1673d 100644
--- a/jsonrpc/src/server.rs
+++ b/jsonrpc/src/server.rs
@@ -3,10 +3,7 @@ use std::{collections::HashMap, sync::Arc};
use log::{debug, error, warn};
use smol::lock::RwLock;
-use karyon_core::{
- async_util::{TaskGroup, TaskResult},
- Executor,
-};
+use karyon_core::async_util::{Executor, TaskGroup, TaskResult};
use karyon_net::{Conn, Listener, ToListener};