Connection
This commit is contained in:
parent
3d7ae99eef
commit
6cd859953e
4 changed files with 134 additions and 92 deletions
12
src/main.rs
12
src/main.rs
|
|
@ -27,18 +27,16 @@ async fn main() {
|
|||
CommunicationValue::new(
|
||||
CommunicationType::Identification
|
||||
)
|
||||
.add_data(DataTypes::UserIds, json::JsonValue::String(Uuid::new_v4().to_string()))
|
||||
.add_data(DataTypes::IotaId, json::JsonValue::String(Uuid::new_v4().to_string()))
|
||||
.add_data(DataTypes::UserIds, Uuid::new_v4().to_string())
|
||||
.add_data(DataTypes::IotaId, Uuid::new_v4().to_string())
|
||||
.to_json()
|
||||
.to_string()
|
||||
.as_mut()
|
||||
.to_string()
|
||||
).await;
|
||||
omikron.close().await;
|
||||
);
|
||||
|
||||
|
||||
let mut child = Command::new("sleep").arg("2").spawn().unwrap();
|
||||
let mut child = Command::new("sleep").arg("5").spawn().unwrap();
|
||||
let _result = child.wait().unwrap();
|
||||
|
||||
omikron.close().await;
|
||||
println!("reached end of main");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue