mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 17:41:22 +00:00
.github/workflows: Deny cargo doc warnings in CI (#2936)
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
@ -267,7 +267,7 @@ impl GossipsubConfig {
|
||||
/// connected/trusted nodes. The default is false.
|
||||
///
|
||||
/// Note: Peer exchange is not implemented today, see
|
||||
/// https://github.com/libp2p/rust-libp2p/issues/2398.
|
||||
/// <https://github.com/libp2p/rust-libp2p/issues/2398>.
|
||||
pub fn do_px(&self) -> bool {
|
||||
self.do_px
|
||||
}
|
||||
@ -334,7 +334,7 @@ impl GossipsubConfig {
|
||||
/// Number of heartbeat ticks that specifcy the interval in which opportunistic grafting is
|
||||
/// applied. Every `opportunistic_graft_ticks` we will attempt to select some high-scoring mesh
|
||||
/// peers to replace lower-scoring ones, if the median score of our mesh peers falls below a
|
||||
/// threshold (see https://godoc.org/github.com/libp2p/go-libp2p-pubsub#PeerScoreThresholds).
|
||||
/// threshold (see <https://godoc.org/github.com/libp2p/go-libp2p-pubsub#PeerScoreThresholds>).
|
||||
/// The default is 60.
|
||||
pub fn opportunistic_graft_ticks(&self) -> u64 {
|
||||
self.opportunistic_graft_ticks
|
||||
@ -650,7 +650,7 @@ impl GossipsubConfigBuilder {
|
||||
/// connected/trusted nodes. The default is false.
|
||||
///
|
||||
/// Note: Peer exchange is not implemented today, see
|
||||
/// https://github.com/libp2p/rust-libp2p/issues/2398.
|
||||
/// <https://github.com/libp2p/rust-libp2p/issues/2398>.
|
||||
pub fn do_px(&mut self) -> &mut Self {
|
||||
self.config.do_px = true;
|
||||
self
|
||||
@ -725,7 +725,7 @@ impl GossipsubConfigBuilder {
|
||||
/// Number of heartbeat ticks that specifcy the interval in which opportunistic grafting is
|
||||
/// applied. Every `opportunistic_graft_ticks` we will attempt to select some high-scoring mesh
|
||||
/// peers to replace lower-scoring ones, if the median score of our mesh peers falls below a
|
||||
/// threshold (see https://godoc.org/github.com/libp2p/go-libp2p-pubsub#PeerScoreThresholds).
|
||||
/// threshold (see <https://godoc.org/github.com/libp2p/go-libp2p-pubsub#PeerScoreThresholds>).
|
||||
/// The default is 60.
|
||||
pub fn opportunistic_graft_ticks(&mut self, opportunistic_graft_ticks: u64) -> &mut Self {
|
||||
self.config.opportunistic_graft_ticks = opportunistic_graft_ticks;
|
||||
|
@ -24,7 +24,7 @@
|
||||
//! # Overview
|
||||
//!
|
||||
//! *Note: The gossipsub protocol specifications
|
||||
//! (https://github.com/libp2p/specs/tree/master/pubsub/gossipsub) provide an outline for the
|
||||
//! (<https://github.com/libp2p/specs/tree/master/pubsub/gossipsub>) provide an outline for the
|
||||
//! routing protocol. They should be consulted for further detail.*
|
||||
//!
|
||||
//! Gossipsub is a blend of meshsub for data and randomsub for mesh metadata. It provides bounded
|
||||
|
Reference in New Issue
Block a user