Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
jadamcrain committed Apr 25, 2024
1 parent d37be0e commit 4c5256f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dnp3/examples/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ fn create_udp_channel() -> Result<MasterChannel, Box<dyn std::error::Error>> {
let channel = spawn_master_udp(
"127.0.0.1:20001".parse()?,
LinkReadMode::Datagram,
Duration::from_secs(5),
Timeout::from_secs(5)?,
get_master_channel_config()?,
);
// ANCHOR_END: create_master_udp_channel
Expand Down
2 changes: 1 addition & 1 deletion dnp3/examples/outstation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async fn run_udp() -> Result<(), Box<dyn std::error::Error>> {
remote_endpoint: "127.0.0.1:20001".parse().unwrap(),
socket_mode: UdpSocketMode::OneToOne,
link_read_mode: LinkReadMode::Datagram,
retry_delay: Duration::from_secs(5),
retry_delay: Timeout::from_secs(5)?,
};

let outstation = spawn_outstation_udp(
Expand Down

0 comments on commit 4c5256f

Please sign in to comment.