mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-02 11:47:25 +00:00
Merge txpool-runtime-api with txpool-api (#4320)
* Remove transaction-pool-runtime-api * Merge runtime-api with transaction-pool.
This commit is contained in:
committed by
Bastian Köcher
parent
70db5da6c4
commit
3805393a13
@@ -68,15 +68,15 @@ pub enum Error {
|
||||
impl std::error::Error for Error {}
|
||||
|
||||
/// Transaction pool error conversion.
|
||||
pub trait IntoPoolError: ::std::error::Error + Send + Sized {
|
||||
pub trait IntoPoolError: std::error::Error + Send + Sized {
|
||||
/// Try to extract original `Error`
|
||||
///
|
||||
/// This implementation is optional and used only to
|
||||
/// provide more descriptive error messages for end users
|
||||
/// of RPC API.
|
||||
fn into_pool_error(self) -> ::std::result::Result<Error, Self> { Err(self) }
|
||||
fn into_pool_error(self) -> std::result::Result<Error, Self> { Err(self) }
|
||||
}
|
||||
|
||||
impl IntoPoolError for Error {
|
||||
fn into_pool_error(self) -> ::std::result::Result<Error, Self> { Ok(self) }
|
||||
fn into_pool_error(self) -> std::result::Result<Error, Self> { Ok(self) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user