Skip to content

Commit c774c42

Browse files
committed
Fix comment
Signed-off-by: Daniel Blando <ddeluigg@amazon.com>
1 parent e7fcc82 commit c774c42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/ring/batch.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ func (b *batchTracker) record(sampleTrackers []*itemTracker, err error) {
152152
errCount := sampleTrackers[i].recordError(err)
153153
// We should return an error if we reach the maxFailure (quorum) on a given error family OR
154154
// we dont have any remaining ingesters to try
155-
// Ex: 2xx, 4xx, 5xx -> return 5xx
155+
// Ex: 2xx, 4xx, 5xx -> return 4xx
156+
// Ex: 2xx, 5xx, 4xx -> return 4xx
156157
// Ex: 4xx, 4xx, _ -> return 4xx
157158
// Ex: 5xx, _, 5xx -> return 5xx
158159
if errCount > int32(sampleTrackers[i].maxFailures) || sampleTrackers[i].remaining.Dec() == 0 {

0 commit comments

Comments
 (0)