From f942619ef1ab6fd03bdb42e1218e6078318b6b6d Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Thu, 11 Jan 2024 13:20:41 -0500 Subject: [PATCH] Update flow/dynamicconf/dynamicconf.go Co-authored-by: Kevin Biju <52661649+heavycrystal@users.noreply.github.com> --- flow/dynamicconf/dynamicconf.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flow/dynamicconf/dynamicconf.go b/flow/dynamicconf/dynamicconf.go index af0d6afd0f..5a22ba4058 100644 --- a/flow/dynamicconf/dynamicconf.go +++ b/flow/dynamicconf/dynamicconf.go @@ -42,8 +42,7 @@ func dynamicConfUint32(ctx context.Context, key string, defaultValue uint32) uin return defaultValue } - var result uint64 - result, err = strconv.ParseUint(value.String, 10, 32) + result, err := strconv.ParseUint(value.String, 10, 32) if err != nil { slog.Error("Failed to parse uint32: %v", err) return defaultValue