diff --git a/src/replication/events.rs b/src/replication/events.rs index baf16e3..b9c07df 100644 --- a/src/replication/events.rs +++ b/src/replication/events.rs @@ -4,9 +4,9 @@ use async_broadcast::{broadcast, InactiveReceiver, Receiver, Sender}; static MAX_EVENT_QUEUE_CAPACITY: usize = 32; -/// Event emeitted by [`Events::send_on_get`] +/// Event emitted by [`crate::Hypercore::event_subscribe`] #[derive(Debug, Clone)] -/// Emitted when [`Hypercore::get`] is called when the block is missing. +/// Emitted when [`crate::Hypercore::get`] is called when the block is missing. pub struct Get { /// Index of the requested block pub index: u64, diff --git a/src/replication/mod.rs b/src/replication/mod.rs index e48d6c3..166cb30 100644 --- a/src/replication/mod.rs +++ b/src/replication/mod.rs @@ -18,9 +18,9 @@ use std::future::Future; /// Methods related to just this core's information pub trait CoreInfo { - /// Get core info (see: [`Hypercore::info`] + /// Get core info (see: [`crate::Hypercore::info`] fn info(&self) -> impl Future + Send; - /// Get the key_pair (see: [`Hypercore::key_pair`] + /// Get the key_pair (see: [`crate::Hypercore::key_pair`] fn key_pair(&self) -> impl Future + Send; } @@ -68,7 +68,7 @@ pub enum CoreMethodsError { } /// Trait for things that consume [`crate::Hypercore`] can instead use this trait -/// so they can use all Hypercore-like things such as [`SharedCore`]. +/// so they can use all Hypercore-like things such as `SharedCore`. pub trait CoreMethods: CoreInfo { /// Check if the core has the block at the given index locally fn has(&self, index: u64) -> impl Future + Send;