aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/tests
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc/tests')
-rw-r--r--jsonrpc/tests/impl_rpc_service.rs4
-rw-r--r--jsonrpc/tests/rpc_impl.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/jsonrpc/tests/impl_rpc_service.rs b/jsonrpc/tests/impl_rpc_service.rs
index e590ae1..bb42679 100644
--- a/jsonrpc/tests/impl_rpc_service.rs
+++ b/jsonrpc/tests/impl_rpc_service.rs
@@ -1,4 +1,4 @@
-use karyon_jsonrpc::{impl_rpc_service, Error, RPCService};
+use karyon_jsonrpc::{impl_rpc_service, RPCError, RPCService};
use serde_json::Value;
#[test]
@@ -6,7 +6,7 @@ fn service() {
struct Foo {}
impl Foo {
- async fn foo(&self, params: Value) -> Result<Value, Error> {
+ async fn foo(&self, params: Value) -> Result<Value, RPCError> {
Ok(params)
}
}
diff --git a/jsonrpc/tests/rpc_impl.rs b/jsonrpc/tests/rpc_impl.rs
index 5b14b59..64e3bb1 100644
--- a/jsonrpc/tests/rpc_impl.rs
+++ b/jsonrpc/tests/rpc_impl.rs
@@ -1,4 +1,4 @@
-use karyon_jsonrpc::{rpc_impl, Error, RPCService};
+use karyon_jsonrpc::{rpc_impl, RPCError, RPCService};
use serde_json::Value;
#[test]
@@ -7,7 +7,7 @@ fn rpc_impl_service() {
#[rpc_impl]
impl Foo {
- async fn foo(&self, params: Value) -> Result<Value, Error> {
+ async fn foo(&self, params: Value) -> Result<Value, RPCError> {
Ok(params)
}
}