From 98a1de91a2dae06323558422c239e5a45fc86e7b Mon Sep 17 00:00:00 2001 From: hozan23 Date: Tue, 28 Nov 2023 22:41:33 +0300 Subject: implement TLS for inbound and outbound connections --- jsonrpc/src/client.rs | 2 +- jsonrpc/src/codec.rs | 2 +- jsonrpc/src/server.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'jsonrpc/src') diff --git a/jsonrpc/src/client.rs b/jsonrpc/src/client.rs index f5277aa..939d177 100644 --- a/jsonrpc/src/client.rs +++ b/jsonrpc/src/client.rs @@ -1,7 +1,7 @@ use log::debug; use serde::{de::DeserializeOwned, Serialize}; -use karyons_core::utils::random_32; +use karyons_core::util::random_32; use karyons_net::{dial, Conn, Endpoint}; use crate::{ diff --git a/jsonrpc/src/codec.rs b/jsonrpc/src/codec.rs index e198a6e..5dac8da 100644 --- a/jsonrpc/src/codec.rs +++ b/jsonrpc/src/codec.rs @@ -1,6 +1,6 @@ use memchr::memchr; -use karyons_core::async_utils::timeout; +use karyons_core::async_util::timeout; use karyons_net::Conn; use crate::{Error, Result}; diff --git a/jsonrpc/src/server.rs b/jsonrpc/src/server.rs index 5b9b799..05ef7da 100644 --- a/jsonrpc/src/server.rs +++ b/jsonrpc/src/server.rs @@ -4,7 +4,7 @@ use log::{debug, error, warn}; use smol::lock::RwLock; use karyons_core::{ - async_utils::{TaskGroup, TaskResult}, + async_util::{TaskGroup, TaskResult}, Executor, }; use karyons_net::{listen, Conn, Endpoint, Listener}; -- cgit v1.2.3