aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/protocol.rs
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-05-27 00:59:23 +0200
committerhozan23 <hozan23@karyontech.net>2024-05-27 00:59:23 +0200
commitd1c816660c0583db33d160e2ef3e980bef0d5a85 (patch)
tree9eb06e6dbfbe34c6c2f85eee8d2e337b155be103 /p2p/src/protocol.rs
parent385d53ec53e750e342cce78edb793958edf5133e (diff)
p2p: WIP rpc server implementation for the p2p monitor
Diffstat (limited to 'p2p/src/protocol.rs')
-rw-r--r--p2p/src/protocol.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/p2p/src/protocol.rs b/p2p/src/protocol.rs
index 951040b..d42f092 100644
--- a/p2p/src/protocol.rs
+++ b/p2p/src/protocol.rs
@@ -39,7 +39,7 @@ impl EventValue for ProtocolEvent {
///
/// use karyon_p2p::{
/// protocol::{ArcProtocol, Protocol, ProtocolID, ProtocolEvent},
-/// Backend, PeerID, Config, Version, P2pError, ArcPeer,
+/// Backend, PeerID, Config, Version, Error, ArcPeer,
/// keypair::{KeyPair, KeyPairType},
/// };
///
@@ -57,7 +57,7 @@ impl EventValue for ProtocolEvent {
///
/// #[async_trait]
/// impl Protocol for NewProtocol {
-/// async fn start(self: Arc<Self>) -> Result<(), P2pError> {
+/// async fn start(self: Arc<Self>) -> Result<(), Error> {
/// let listener = self.peer.register_listener::<Self>().await;
/// loop {
/// let event = listener.recv().await.unwrap();
@@ -76,7 +76,7 @@ impl EventValue for ProtocolEvent {
/// Ok(())
/// }
///
-/// fn version() -> Result<Version, P2pError> {
+/// fn version() -> Result<Version, Error> {
/// "0.2.0, >0.1.0".parse()
/// }
///