Skip to content

Commit

Permalink
add context
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Oct 17, 2024
1 parent 8043106 commit b80a856
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions p2p/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ impl DriaBehaviour {

Ok(Self {
relay: relay_behaviour,
gossipsub: create_gossipsub_behaviour(peer_id)?,
gossipsub: create_gossipsub_behaviour(peer_id)
.wrap_err("could not create Gossipsub behaviour")?,
kademlia: create_kademlia_behaviour(peer_id, kademlia_protocol),
autonat: create_autonat_behaviour(peer_id),
dcutr: create_dcutr_behaviour(peer_id),
Expand Down Expand Up @@ -155,7 +156,7 @@ fn create_gossipsub_behaviour(author: PeerId) -> Result<gossipsub::Behaviour> {
.validation_mode(VALIDATION_MODE)
.validate_messages()
.build()
.wrap_err(eyre!("Failed to create config"))?,
.wrap_err(eyre!("could not create Gossipsub config"))?,
)
.map_err(|e| eyre!(e))
}

0 comments on commit b80a856

Please sign in to comment.