mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-12 02:47:15 +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
|
||||
/// 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 {
|
||||
self.do_px
|
||||
}
|
||||
@ -602,7 +605,10 @@ impl GossipsubConfigBuilder {
|
||||
}
|
||||
|
||||
/// 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 {
|
||||
self.config.do_px = true;
|
||||
self
|
||||
|
Loading…
x
Reference in New Issue
Block a user