Skip to content

Commit

Permalink
Fix for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
leoparente committed Sep 16, 2024
1 parent bde2e0e commit d025fc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diode-server/reconciler/logs_retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func retrieveIngestionStatsSummary(ctx context.Context, client RedisClient) (*re

results := make([]*redis.Cmd, 0)
results = append(results, pipe.Do(ctx, "FT.SEARCH", "ingest-entity", "*", "LIMIT", 0, 0))
for i := 1; i < 5; i++ {
results = append(results, pipe.Do(ctx, "FT.SEARCH", "ingest-entity", fmt.Sprintf("@state:[%d %d]", i, i), "LIMIT", 0, 0))
for s := reconcilerpb.State_NEW; s <= reconcilerpb.State_NO_CHANGES; s++ {
results = append(results, pipe.Do(ctx, "FT.SEARCH", "ingest-entity", fmt.Sprintf("@state:[%d %d]", s, s), "LIMIT", 0, 0))
}

_, err := pipe.Exec(ctx)
Expand Down

0 comments on commit d025fc8

Please sign in to comment.