Skip to content

Commit 6daa260

Browse files
committed
examples:mempool.space
1 parent e48a482 commit 6daa260

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/async_usage/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use mempool_space::*;
1212

1313
fn main() {
1414
// Setup AsyncTargets
15-
let icmp_target = IcmpTarget::from_str("www.google.de").unwrap();
16-
let tcp_target = TcpTarget::from_str("www.google.de:80").unwrap();
15+
let icmp_target = IcmpTarget::from_str("mempool.space").unwrap();
16+
let tcp_target = TcpTarget::from_str("mempool.space:80").unwrap();
1717

1818
let handler = |target: &dyn Target, status, old_status, error| {
1919
print!("Target \"{}\"", target.get_id());

examples/usage/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use mempool_space::*;
1010

1111
fn main() {
1212
// Construct ICMP Target check if the target is availabile
13-
let icmp_target = IcmpTarget::from_str("www.google.de").unwrap();
13+
let icmp_target = IcmpTarget::from_str("mempool.space").unwrap();
1414
match icmp_target.check_availability() {
1515
Ok(status) => println!("{} is {}", icmp_target.get_id(), status),
1616
Err(error) => println!("Check failed for {} reason {}", icmp_target.get_id(), error),

0 commit comments

Comments
 (0)