From f4e9a642b353f2e3d5e3be324d22aff06482be16 Mon Sep 17 00:00:00 2001 From: shuiyisong Date: Wed, 31 Jul 2024 16:19:19 +0800 Subject: [PATCH] fix: macro variable with sign --- meter-macros/src/read_meter.rs | 2 +- meter-macros/src/write_meter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meter-macros/src/read_meter.rs b/meter-macros/src/read_meter.rs index 5651caa..da73477 100644 --- a/meter-macros/src/read_meter.rs +++ b/meter-macros/src/read_meter.rs @@ -71,7 +71,7 @@ macro_rules! read_meter { catalog: $catalog.into(), schema: $schema.into(), value: value, - source: source, + source: $source, }; meter_core::global::global_registry().record_read(record); } diff --git a/meter-macros/src/write_meter.rs b/meter-macros/src/write_meter.rs index a27fe5c..8579ca0 100644 --- a/meter-macros/src/write_meter.rs +++ b/meter-macros/src/write_meter.rs @@ -65,7 +65,7 @@ macro_rules! write_meter { catalog: $catalog.into(), schema: $schema.into(), value: value, - source: source, + source: $source, }; r.record_write(record);