[njs] Fetch: renamed njs_js_http_destructor() as ngx_js_http_destructor().
noreply at nginx.com
noreply at nginx.com
Fri Apr 11 15:29:02 UTC 2025
details: https://github.com/nginx/njs/commit/3aa2ed4b4dad5867920e2b8a6da28840c44e67eb
branches: master
commit: 3aa2ed4b4dad5867920e2b8a6da28840c44e67eb
user: Zhidao HONG <z.hong at f5.com>
date: Fri, 11 Apr 2025 21:57:02 +0800
description:
Fetch: renamed njs_js_http_destructor() as ngx_js_http_destructor().
---
nginx/ngx_js_fetch.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/nginx/ngx_js_fetch.c b/nginx/ngx_js_fetch.c
index 2db73904..5abd43bd 100644
--- a/nginx/ngx_js_fetch.c
+++ b/nginx/ngx_js_fetch.c
@@ -163,7 +163,7 @@ static njs_int_t ngx_js_headers_fill(njs_vm_t *vm, ngx_js_headers_t *headers,
njs_value_t *init);
static ngx_js_http_t *ngx_js_http_alloc(njs_vm_t *vm, ngx_pool_t *pool,
ngx_log_t *log);
-static void njs_js_http_destructor(ngx_js_event_t *event);
+static void ngx_js_http_destructor(ngx_js_event_t *event);
static void ngx_js_resolve_handler(ngx_resolver_ctx_t *ctx);
static njs_int_t ngx_js_fetch_promissified_result(njs_vm_t *vm,
njs_value_t *result, njs_int_t rc, njs_value_t *retval);
@@ -1299,7 +1299,7 @@ ngx_js_http_alloc(njs_vm_t *vm, ngx_pool_t *pool, ngx_log_t *log)
event->ctx = vm;
njs_value_function_set(njs_value_arg(&event->function), callback);
- event->destructor = njs_js_http_destructor;
+ event->destructor = ngx_js_http_destructor;
event->fd = ctx->event_id++;
event->data = http;
@@ -1447,7 +1447,7 @@ ngx_js_http_close_connection(ngx_connection_t *c)
static void
-njs_js_http_destructor(ngx_js_event_t *event)
+ngx_js_http_destructor(ngx_js_event_t *event)
{
ngx_js_http_t *http;
More information about the nginx-devel
mailing list