mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-15 04:11:19 +00:00
protocols/gossipsub/src/config: Document peer exchange not supported (#2397)
This commit is contained in:
parent
17861d9cac
commit
5435539d05
@ -248,7 +248,10 @@ impl GossipsubConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Whether Peer eXchange is enabled; this should be enabled in bootstrappers and other well
|
/// Whether Peer eXchange is enabled; this should be enabled in bootstrappers and other well
|
||||||
/// connected/trusted nodes. The default is true.
|
/// connected/trusted nodes. The default is false.
|
||||||
|
///
|
||||||
|
/// Note: Peer exchange is not implemented today, see
|
||||||
|
/// https://github.com/libp2p/rust-libp2p/issues/2398.
|
||||||
pub fn do_px(&self) -> bool {
|
pub fn do_px(&self) -> bool {
|
||||||
self.do_px
|
self.do_px
|
||||||
}
|
}
|
||||||
@ -602,7 +605,10 @@ impl GossipsubConfigBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Enables Peer eXchange. This should be enabled in bootstrappers and other well
|
/// Enables Peer eXchange. This should be enabled in bootstrappers and other well
|
||||||
/// connected/trusted nodes. The default is true.
|
/// connected/trusted nodes. The default is false.
|
||||||
|
///
|
||||||
|
/// Note: Peer exchange is not implemented today, see
|
||||||
|
/// https://github.com/libp2p/rust-libp2p/issues/2398.
|
||||||
pub fn do_px(&mut self) -> &mut Self {
|
pub fn do_px(&mut self) -> &mut Self {
|
||||||
self.config.do_px = true;
|
self.config.do_px = true;
|
||||||
self
|
self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user