From 379dca552ca91d22ee007b42f93803ad3dc2b274 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Wed, 20 Mar 2024 15:20:21 +0100 Subject: core: add the option to create a new task group without providing an executor & remove GlobalExecutor type --- jsonrpc/Cargo.toml | 1 + jsonrpc/src/server.rs | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'jsonrpc') 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}; -- cgit v1.2.3