Skip to content

Commit

Permalink
chore: rename autonat behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
fbozic committed May 20, 2024
1 parent d50b49b commit b991c33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const CALIMERO_KAD_PROTO_NAME: StreamProtocol = StreamProtocol::new("/calimero/k

#[derive(NetworkBehaviour)]
struct Behaviour {
auto_nat: autonat::Behaviour,
autonat: autonat::Behaviour,
identify: identify::Behaviour,
kad: kad::Behaviour<kad::store::MemoryStore>,
ping: ping::Behaviour,
Expand Down Expand Up @@ -64,7 +64,7 @@ async fn main() -> eyre::Result<()> {
)?
.with_quic()
.with_behaviour(|keypair| Behaviour {
auto_nat: autonat::Behaviour::new(peer_id.clone(), Default::default()),
autonat: autonat::Behaviour::new(peer_id.clone(), Default::default()),
identify: identify::Behaviour::new(identify::Config::new(
PROTOCOL_VERSION.to_owned(),
keypair.public(),
Expand Down Expand Up @@ -131,7 +131,7 @@ async fn handle_swarm_event(swarm: &mut Swarm<Behaviour>, event: SwarmEvent<Beha

async fn handle_swarm_behaviour_event(swarm: &mut Swarm<Behaviour>, event: BehaviourEvent) {
match event {
BehaviourEvent::AutoNat(event) => {
BehaviourEvent::Autonat(event) => {
info!("AutoNat event: {event:?}");
}
BehaviourEvent::Identify(event) => {
Expand Down

0 comments on commit b991c33

Please sign in to comment.