make sure peer/error.s comments are up to date

This commit is contained in:
Jane Lusby 2021-02-18 15:20:58 -08:00 committed by Jane Lusby
parent 2266886a53
commit 6f205a1812
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,9 @@ use zebra_chain::serialization::SerializationError;
use crate::protocol::external::InventoryHash;
/// A wrapper around `Arc<PeerError>` that implements `Error`.
// TODO soon this Wrapper will not be necessary. Once
// https://github.com/rust-lang/rust/pull/80553 lands on stable we should
// replace this with a type alias.
#[derive(Error, Debug, Clone)]
#[error(transparent)]
pub struct SharedPeerError(Arc<TracedError<PeerError>>);