mirror of
https://github.com/prometheus/prometheus
synced 2025-04-11 03:52:13 +00:00
fix request bytes size and continue is useless (#9635)
Signed-off-by: kalmanzhao <kalmanzhao@tencent.com> Co-authored-by: kalmanzhao <kalmanzhao@tencent.com>
This commit is contained in:
parent
edd05d7010
commit
f82e56fbba
@ -1168,7 +1168,7 @@ func (s *shards) sendSamplesWithBackoff(ctx context.Context, samples []prompb.Ti
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
reqSize := len(*buf)
|
reqSize := len(req)
|
||||||
*buf = req
|
*buf = req
|
||||||
|
|
||||||
// An anonymous function allows us to defer the completion of our per-try spans
|
// An anonymous function allows us to defer the completion of our per-try spans
|
||||||
@ -1264,7 +1264,6 @@ func sendWriteRequestWithBackoff(ctx context.Context, cfg config.QueueConfig, l
|
|||||||
}
|
}
|
||||||
|
|
||||||
try++
|
try++
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user