add http interface

This commit is contained in:
Yihao Deng 2024-07-08 02:44:52 +00:00
parent 3148463ab3
commit 92281bb4a3
1 changed files with 2 additions and 1 deletions

View File

@ -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);