You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2022/11/10 05:38:54 UTC

[incubator-teaclave] 02/02: SDK: fix calling a wrong function

This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git

commit df5c0a7f314ede717c9ccfad3aa95a737b8cf6d5
Author: sunhe05 <su...@baidu.com>
AuthorDate: Tue Nov 8 04:45:31 2022 +0000

    SDK: fix calling a wrong function
---
 sdk/rust/src/bindings.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdk/rust/src/bindings.rs b/sdk/rust/src/bindings.rs
index e7a72979..e8fcf70b 100644
--- a/sdk/rust/src/bindings.rs
+++ b/sdk/rust/src/bindings.rs
@@ -344,7 +344,7 @@ pub unsafe extern "C" fn teaclave_cancel_task(
     }
 
     let task_id = CStr::from_ptr(task_id).to_string_lossy().into_owned();
-    match client.invoke_task(&task_id) {
+    match client.cancel_task(&task_id) {
         Ok(_) => 0,
         Err(_) => 1,
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org