Skip to content

Commit

Permalink
fix: refine codes
Browse files Browse the repository at this point in the history
  • Loading branch information
halajohn committed Dec 2, 2024
1 parent 6122927 commit 36030a9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static void ten_env_proxy_notify_return_result(ten_env_t *ten_env,
ten_error_errno(&err), ten_error_errmsg(&err));
}
} else {
// TODO(xilin) : Transfrom the return_xxx C function into an async API and
// TODO(xilin) : Transform the return_xxx C function into an async API and
// set the callback here. Wait for the PR 357 to be merged.
if (info->c_target_cmd) {
rc =
Expand All @@ -101,8 +101,7 @@ static void ten_env_proxy_notify_return_result(ten_env_t *ten_env,
ten_py_error_t *py_err = NULL;

// About to call the Python function, so it's necessary to ensure that the
// GIL
// has been acquired.
// GIL has been acquired.
//
// Allows C codes to work safely with Python objects.
PyGILState_STATE prev_state = ten_py_gil_state_ensure();
Expand Down

0 comments on commit 36030a9

Please sign in to comment.