forked from sigp/anchor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4182bf6
commit 9329c3d
Showing
2 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
use libp2p::swarm::NetworkBehaviour; | ||
use libp2p::{identify, ping}; | ||
use libp2p::{gossipsub, identify, ping}; | ||
|
||
#[derive(NetworkBehaviour)] | ||
pub struct AnchorBehaviour { | ||
/// Provides IP addresses and peer information. | ||
pub identify: identify::Behaviour, | ||
/// Used for connection health checks. | ||
pub ping: ping::Behaviour, | ||
// /// The routing pub-sub mechanism for Anchor. | ||
// pub gossipsub: gossipsub::Behaviour, | ||
/// The routing pub-sub mechanism for Anchor. | ||
pub gossipsub: gossipsub::Behaviour, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters