Skip to content

Commit

Permalink
feat: Bootstrap to ec2 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shahi authored Apr 12, 2023
1 parent 1e58952 commit ddc06a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust-peer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async fn main() -> Result<()> {
}
}
SwarmEvent::Behaviour(BehaviourEvent::Kademlia(e)) => {
info!("Kademlia event: {:?}", e);
debug!("Kademlia event: {:?}", e);
}
event => {
debug!("Other type of event: {:?}", event);
Expand All @@ -195,7 +195,7 @@ async fn main() -> Result<()> {
futures::future::Either::Right(_) => {
tick = futures_timer::Delay::new(TICK_INTERVAL);

info!(
debug!(
"external addrs: {:?}",
swarm.external_addresses().collect::<Vec<&AddressRecord>>()
);
Expand Down Expand Up @@ -231,7 +231,7 @@ struct Behaviour {
}

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

Expand Down

1 comment on commit ddc06a4

@vercel
Copy link

@vercel vercel bot commented on ddc06a4 Apr 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.