mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-23 09:25:32 +00:00
get connected to temporal
This commit is contained in:
@ -99,6 +99,9 @@ pub extern "C" fn smee_client_notify_network_joined(
|
||||
|
||||
match smee.notify_network_joined(params) {
|
||||
Ok(()) => true,
|
||||
Err(_) => false,
|
||||
Err(e) => {
|
||||
println!("error notifying network joined: {0}", e.to_string());
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -80,6 +80,7 @@ impl SmeeClient {
|
||||
}
|
||||
|
||||
pub fn notify_network_joined(&self, params: NetworkJoinedParams) -> Result<(), Box<dyn std::error::Error>> {
|
||||
println!("notifying network joined");
|
||||
let options = WorkflowOptions {
|
||||
id_reuse_policy: WorkflowIdReusePolicy::RejectDuplicate,
|
||||
execution_timeout: None,
|
||||
@ -94,6 +95,7 @@ impl SmeeClient {
|
||||
let workflow_id = Uuid::new_v4();
|
||||
|
||||
self.tokio_rt.block_on(async {
|
||||
println!("calilng start_workflow");
|
||||
self.client
|
||||
.start_workflow(
|
||||
payload,
|
||||
|
Reference in New Issue
Block a user