summaryrefslogtreecommitdiff
path: root/rust/src/workflow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/workflow.rs')
-rw-r--r--rust/src/workflow.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/rust/src/workflow.rs b/rust/src/workflow.rs
index 2c03a482..49c5760e 100644
--- a/rust/src/workflow.rs
+++ b/rust/src/workflow.rs
@@ -204,9 +204,8 @@ impl Workflow {
/// Get an existing [Workflow] by name.
pub fn get(name: &str) -> Option<Ref<Workflow>> {
- // TODO: BNWorkflowInstance has get-or-create semantics. There is currently no way to just get.
let name = name.to_cstr();
- let result = unsafe { BNWorkflowInstance(name.as_ptr()) };
+ let result = unsafe { BNWorkflowGet(name.as_ptr()) };
let handle = NonNull::new(result)?;
Some(unsafe { Workflow::ref_from_raw(handle) })
}