mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-07 16:33:08 +00:00
Actively wait for result to arrive the test node
This commit is contained in:
parent
464fbcd98b
commit
ffe30171e2
@ -1,7 +1,7 @@
|
|||||||
use multiaddr::Multiaddr;
|
use multiaddr::Multiaddr;
|
||||||
use std::net::IpAddr;
|
use std::net::IpAddr;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::time::SystemTime;
|
use std::time::{Duration, SystemTime};
|
||||||
use waku::{
|
use waku::{
|
||||||
waku_new, waku_set_event_callback, Encoding, Event, ProtocolId, WakuContentTopic, WakuMessage,
|
waku_new, waku_set_event_callback, Encoding, Event, ProtocolId, WakuContentTopic, WakuMessage,
|
||||||
WakuNodeConfig,
|
WakuNodeConfig,
|
||||||
@ -71,7 +71,7 @@ pub fn main() -> Result<(), String> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
node.relay_publish_message(&message, None, None)?;
|
node.relay_publish_message(&message, None, None)?;
|
||||||
|
std::thread::sleep(Duration::from_secs(2));
|
||||||
node.stop()?;
|
node.stop()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user