From 09404c6fa07c38097259e352173d2d7c27a29300 Mon Sep 17 00:00:00 2001 From: Julie Vogelman Date: Thu, 16 Jan 2025 14:26:31 -0800 Subject: [PATCH] comment Signed-off-by: Julie Vogelman --- pkg/mapper/examples/cat_sleep/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/mapper/examples/cat_sleep/main.go b/pkg/mapper/examples/cat_sleep/main.go index 7fc63a5e..b7ab86fa 100644 --- a/pkg/mapper/examples/cat_sleep/main.go +++ b/pkg/mapper/examples/cat_sleep/main.go @@ -17,6 +17,7 @@ type CatSleep struct { func (e *CatSleep) Map(ctx context.Context, keys []string, d mapper.Datum) mapper.Messages { + // sleep for as long as the environment variable indicates (or default if not configured) sleepSeconds := DEFAULT_SLEEP_SECONDS secondsString := os.Getenv("SLEEP_SECONDS") if secondsString == "" {