From b7edd9077c26b5393f5aff5b369c20787971546f Mon Sep 17 00:00:00 2001 From: Raj Kamal Singh <1133322+raj-k-singh@users.noreply.github.com> Date: Tue, 9 Apr 2024 15:42:10 +0530 Subject: [PATCH] chore: use StringGetter interface instead of StandardStringGetter for HexToInt arg (#312) --- .../signoztransformprocessor/ottlfunctions/func_hex_to_int.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processor/signoztransformprocessor/ottlfunctions/func_hex_to_int.go b/processor/signoztransformprocessor/ottlfunctions/func_hex_to_int.go index c97b026d..3c4a5629 100644 --- a/processor/signoztransformprocessor/ottlfunctions/func_hex_to_int.go +++ b/processor/signoztransformprocessor/ottlfunctions/func_hex_to_int.go @@ -10,7 +10,7 @@ import ( ) type HexToIntArguments[K any] struct { - Target ottl.StandardStringGetter[K] + Target ottl.StringGetter[K] } func NewHexToIntFactory[K any]() ottl.Factory[K] { @@ -27,7 +27,7 @@ func createHexToIntFunction[K any](_ ottl.FunctionContext, oArgs ottl.Arguments) return hexToInt(args.Target) } -func hexToInt[K any](target ottl.StandardStringGetter[K]) (ottl.ExprFunc[K], error) { +func hexToInt[K any](target ottl.StringGetter[K]) (ottl.ExprFunc[K], error) { return func(ctx context.Context, tCtx K) (interface{}, error) { val, err := target.Get(ctx, tCtx)