Skip to content

Commit

Permalink
protocols/kad: fix doc for the event emitted by start_providing (#1705)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYoup authored Aug 14, 2020
1 parent 96484fc commit d1024d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/kad/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ where
/// of the libp2p Kademlia provider API.
///
/// The results of the (repeated) provider announcements sent by this node are
/// reported via [`KademliaEvent::QueryResult{QueryResult::AddProvider}`].
/// reported via [`KademliaEvent::QueryResult{QueryResult::StartProviding}`].
pub fn start_providing(&mut self, key: record::Key) -> Result<QueryId, store::Error> {
let record = ProviderRecord::new(key.clone(), self.kbuckets.local_key().preimage().clone());
self.store.add_provider(record)?;
Expand Down

0 comments on commit d1024d2

Please sign in to comment.