aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc
diff options
context:
space:
mode:
authorhozan23 <hozan23@proton.me>2023-11-28 22:41:33 +0300
committerhozan23 <hozan23@proton.me>2023-11-28 22:41:33 +0300
commit98a1de91a2dae06323558422c239e5a45fc86e7b (patch)
tree38c640248824fcb3b4ca5ba12df47c13ef26ccda /jsonrpc
parentca2a5f8bbb6983d9555abd10eaaf86950b794957 (diff)
implement TLS for inbound and outbound connections
Diffstat (limited to 'jsonrpc')
-rw-r--r--jsonrpc/src/client.rs2
-rw-r--r--jsonrpc/src/codec.rs2
-rw-r--r--jsonrpc/src/server.rs2
3 files changed, 3 insertions, 3 deletions
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};