Skip to content

Commit

Permalink
agent example: assume a small LAN cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
caio committed Mar 19, 2024
1 parent 25defef commit 1b29999
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions examples/foca_insecure_udp_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,7 @@ async fn main() -> Result<(), anyhow::Error> {
} = params;

let rng = StdRng::from_entropy();
let config = {
let mut c = Config::simple();
// With this setting you can suspend (^Z) one process,
// wait for it the member to be declared down then resume
// it (fg) and foca should recover by itself
c.notify_down_members = true;
c
};
let config = Config::new_lan(std::num::NonZeroU32::new(10).unwrap());

let buf_len = config.max_packet_size.get();
let mut recv_buf = vec![0u8; buf_len];
Expand Down

0 comments on commit 1b29999

Please sign in to comment.