Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shahi committed Apr 13, 2023
1 parent 7f38ff3 commit 90ef54f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust-peer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ async fn main() -> Result<()> {
.any(|p| p.as_bytes() == KADEMLIA_PROTOCOL_NAME)
{
for addr in listen_addrs {
debug!("identify::Event::Received listen addr: {}", addr);
info!("identify::Event::Received listen addr: {}", addr);
// TODO (fixme): the below doesn't work because the address is still missing /webrtc/p2p even after https://github.com/libp2p/js-libp2p-webrtc/pull/121
// swarm.behaviour_mut().kademlia.add_address(&peer_id, addr);

Expand Down Expand Up @@ -237,7 +237,7 @@ struct Behaviour {
}

fn create_swarm() -> Result<Swarm<Behaviour>> {
let f = File::open("/home/ec2-user/private_key")?;
let f = File::open("./private_key")?;
let mut reader = BufReader::new(f);
let mut buffer = Vec::new();

Expand Down

0 comments on commit 90ef54f

Please sign in to comment.