mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 14:51:34 +00:00
swarm/src/behaviour: Deprecate NetworkBehaviourEventProcess (#2784)
In preparation for https://github.com/libp2p/rust-libp2p/pull/2751.
This commit is contained in:
@ -79,9 +79,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
let floodsub_topic = floodsub::Topic::new("chat");
|
||||
|
||||
// We create a custom network behaviour that combines floodsub and mDNS.
|
||||
// In the future, we want to improve libp2p to make this easier to do.
|
||||
// Use the derive to generate delegating NetworkBehaviour impl and require the
|
||||
// NetworkBehaviourEventProcess implementations below.
|
||||
// Use the derive to generate delegating NetworkBehaviour impl.
|
||||
#[derive(NetworkBehaviour)]
|
||||
#[behaviour(out_event = "OutEvent")]
|
||||
struct MyBehaviour {
|
||||
|
Reference in New Issue
Block a user