typo: fix typo in rpc (#9514)

This commit is contained in:
Thomas Coratger
2024-07-15 18:21:04 +02:00
committed by GitHub
parent 7de39bfb51
commit 5e07dee4e3

View File

@@ -2,7 +2,7 @@
use jsonrpsee_types::ErrorObject;
/// A tait to convert an error to an RPC error.
/// A trait to convert an error to an RPC error.
pub trait ToRpcError: std::error::Error + Send + Sync + 'static {
/// Converts the error to a JSON-RPC error object.
fn to_rpc_error(&self) -> ErrorObject<'static>;