From 41f7d79f2c8c43777f21efd500ca914d92d27754 Mon Sep 17 00:00:00 2001 From: slzhou Date: Tue, 11 Apr 2023 13:42:17 +0800 Subject: [PATCH] fix: fix compilation error --- source/libs/function/src/tudf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/function/src/tudf.c b/source/libs/function/src/tudf.c index 2ade78db40..2269ad7f6a 100644 --- a/source/libs/function/src/tudf.c +++ b/source/libs/function/src/tudf.c @@ -1400,7 +1400,7 @@ void udfcUvHandleError(SClientUvConn *conn) { QUEUE_REMOVE(&task->procTaskQueue); uv_sem_post(&task->taskSem); } - if (!uv_is_closing(conn->pipe)) { + if (!uv_is_closing((uv_handle_t *)conn->pipe)) { uv_close((uv_handle_t *)conn->pipe, onUdfcPipeClose); } } @@ -1554,7 +1554,7 @@ int32_t udfcStartUvTask(SClientUvTaskNode *uvTask) { } else { SClientUvConn *conn = pipe->data; QUEUE_INSERT_TAIL(&conn->taskQueue, &uvTask->connTaskQueue); - if (!uv_is_closing(uvTask->pipe)) { + if (!uv_is_closing((uv_handle_t *)uvTask->pipe)) { uv_close((uv_handle_t *)uvTask->pipe, onUdfcPipeClose); } code = 0; -- GitLab