mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-14 09:28:05 +00:00
update client error
This commit is contained in:
+11
-11
@@ -24,18 +24,18 @@ use solana_client::{
|
||||
};
|
||||
use solana_sdk::pubkey::ParsePubkeyError;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[allow(dead_code)]
|
||||
pub struct AppError(anyhow::Error);
|
||||
// #[derive(Debug)]
|
||||
// #[allow(dead_code)]
|
||||
// pub struct AppError(anyhow::Error);
|
||||
|
||||
impl<E> From<E> for AppError
|
||||
where
|
||||
E: Into<anyhow::Error>,
|
||||
{
|
||||
fn from(err: E) -> Self {
|
||||
Self(err.into())
|
||||
}
|
||||
}
|
||||
// impl<E> From<E> for AppError
|
||||
// where
|
||||
// E: Into<anyhow::Error>,
|
||||
// {
|
||||
// fn from(err: E) -> Self {
|
||||
// Self(err.into())
|
||||
// }
|
||||
// }
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum ClientError {
|
||||
|
||||
Reference in New Issue
Block a user