From 8d2c022bafec4a384806038df701478a8069a0ab Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Tue, 3 Mar 2026 21:21:47 -0600 Subject: [PATCH] fix variable name --- internal/processor/int-random.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/processor/int-random.go b/internal/processor/int-random.go index 3fa4d73..272f21d 100644 --- a/internal/processor/int-random.go +++ b/internal/processor/int-random.go @@ -15,13 +15,13 @@ type IntRandom struct { config config.ProcessorConfig } -func (up *IntRandom) Process(ctx context.Context, payload any) (any, error) { - payloadInt := rand.IntN(up.Max-up.Min+1) + up.Min +func (ir *IntRandom) Process(ctx context.Context, payload any) (any, error) { + payloadInt := rand.IntN(ir.Max-ir.Min+1) + ir.Min return payloadInt, nil } -func (up *IntRandom) Type() string { - return up.config.Type +func (ir *IntRandom) Type() string { + return ir.config.Type } func init() {