From fed9daa0e6d3da161e7d63f002fe2a41f476a925 Mon Sep 17 00:00:00 2001 From: Friedrich Gonzalez Date: Thu, 9 May 2024 16:31:50 +0200 Subject: [PATCH] Keep it simple, let's not implement retries yet Signed-off-by: Friedrich Gonzalez --- pkg/commands/loadgen.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/commands/loadgen.go b/pkg/commands/loadgen.go index 434bb94b3..7697badec 100644 --- a/pkg/commands/loadgen.go +++ b/pkg/commands/loadgen.go @@ -213,7 +213,8 @@ func (c *LoadgenCommand) runBatch(from, to int) error { compressed := snappy.Encode(nil, data) start := time.Now() - if err := c.writeClient.Store(context.Background(), compressed); err != nil { + attempt := 0 // TODO: do retries + if err := c.writeClient.Store(context.Background(), compressed, attempt); err != nil { writeRequestDuration.WithLabelValues("error").Observe(time.Since(start).Seconds()) return err }