-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove shuttle behaviour and send requests directly (#641)
- Loading branch information
Showing
22 changed files
with
1,971 additions
and
3,587 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
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,10 @@ | ||
pub mod phonebook; | ||
|
||
use libp2p::swarm::NetworkBehaviour; | ||
use rust_ipfs::libp2p::{self, swarm::behaviour::toggle::Toggle}; | ||
use rust_ipfs::libp2p; | ||
|
||
#[derive(NetworkBehaviour)] | ||
#[behaviour(prelude = "libp2p::swarm::derive_prelude", to_swarm = "void::Void")] | ||
pub struct Behaviour { | ||
pub shuttle_identity: Toggle<crate::shuttle::identity::client::Behaviour>, | ||
pub shuttle_message: Toggle<crate::shuttle::message::client::Behaviour>, | ||
pub phonebook: phonebook::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
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
Oops, something went wrong.