From cd55097a2cf04cea722c9593cf617d7cca1bb1f2 Mon Sep 17 00:00:00 2001 From: Caio Ramos Casimiro Date: Thu, 2 May 2024 23:35:21 +0100 Subject: [PATCH] refactor(metrics) mv ngx_wa_metrics.[hc] to src/common/metrics --- config | 5 +++-- src/common/{ => metrics}/ngx_wa_metrics.c | 2 -- src/common/{ => metrics}/ngx_wa_metrics.h | 2 -- 3 files changed, 3 insertions(+), 6 deletions(-) rename src/common/{ => metrics}/ngx_wa_metrics.c (99%) rename src/common/{ => metrics}/ngx_wa_metrics.h (97%) diff --git a/config b/config index 0ff846bbb..1a62b68a2 100644 --- a/config +++ b/config @@ -129,6 +129,7 @@ NGX_WASMX_INCS="\ $ngx_addon_dir/src/common \ $ngx_addon_dir/src/common/proxy_wasm \ $ngx_addon_dir/src/common/shm \ + $ngx_addon_dir/src/common/metrics \ $ngx_addon_dir/src/common/lua" NGX_WASMX_DEPS="\ @@ -142,7 +143,7 @@ NGX_WASMX_DEPS="\ $ngx_addon_dir/src/common/shm/ngx_wasm_shm.h \ $ngx_addon_dir/src/common/shm/ngx_wasm_shm_kv.h \ $ngx_addon_dir/src/common/shm/ngx_wasm_shm_queue.h \ - $ngx_addon_dir/src/common/ngx_wa_metrics.h" + $ngx_addon_dir/src/common/metrics/ngx_wa_metrics.h" NGX_WASMX_SRCS="\ $ngx_addon_dir/src/ngx_wasmx.c \ @@ -157,7 +158,7 @@ NGX_WASMX_SRCS="\ $ngx_addon_dir/src/common/shm/ngx_wasm_shm.c \ $ngx_addon_dir/src/common/shm/ngx_wasm_shm_kv.c \ $ngx_addon_dir/src/common/shm/ngx_wasm_shm_queue.c \ - $ngx_addon_dir/src/common/ngx_wa_metrics.c" + $ngx_addon_dir/src/common/metrics/ngx_wa_metrics.c" # wasm diff --git a/src/common/ngx_wa_metrics.c b/src/common/metrics/ngx_wa_metrics.c similarity index 99% rename from src/common/ngx_wa_metrics.c rename to src/common/metrics/ngx_wa_metrics.c index e57da54f2..0b591a734 100644 --- a/src/common/ngx_wa_metrics.c +++ b/src/common/metrics/ngx_wa_metrics.c @@ -3,8 +3,6 @@ #endif #include "ddebug.h" -#include -#include #include #include diff --git a/src/common/ngx_wa_metrics.h b/src/common/metrics/ngx_wa_metrics.h similarity index 97% rename from src/common/ngx_wa_metrics.h rename to src/common/metrics/ngx_wa_metrics.h index 65ca87c0d..b325a9d28 100644 --- a/src/common/ngx_wa_metrics.h +++ b/src/common/metrics/ngx_wa_metrics.h @@ -2,8 +2,6 @@ #define _NGX_WA_METRICS_H_INCLUDED_ -#include -#include #include