From 92281bb4a3e8dafbd1b9ec578a46496be0b94e15 Mon Sep 17 00:00:00 2001 From: Yihao Deng Date: Mon, 8 Jul 2024 02:44:52 +0000 Subject: [PATCH] add http interface --- source/libs/transport/src/thttp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libs/transport/src/thttp.c b/source/libs/transport/src/thttp.c index 704c4b06e2..903facb208 100644 --- a/source/libs/transport/src/thttp.c +++ b/source/libs/transport/src/thttp.c @@ -691,7 +691,8 @@ int64_t transInitHttpChanImpl() { tError("http-report failed init uv, reason:%s", uv_strerror(err)); httpModuleDestroy(http); taosMemoryFree(http); - return TSDB_CODE_THIRDPARTY_ERROR; + terrno = TSDB_CODE_THIRDPARTY_ERROR; + return terrno; } http->asyncPool = transAsyncPoolCreate(http->loop, 1, http, httpAsyncCb);