# Limit edit prediction reject batches to max \(\#43965\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2db237aa52ff4aaa0b55b95167f6bc5a04272ad3)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2db237aa52ff4aaa0b55b95167f6bc5a04272ad3

Requested commit: 2db237aa52ff4aaa0b55b95167f6bc5a04272ad3

Commit: 2db237aa52ff4aaa0b55b95167f6bc5a04272ad3

Tree: 83cd3efab7ff9bfe4aba0f6d85c7fb44187fbd91

Author: Agus Zubiaga

Committer: GitHub

## Message

```
Limit edit prediction reject batches to max (#43965)

We currently attempt to flush all rejected predictions at once even if
we have accumulated more than
`MAX_EDIT_PREDICTION_REJECTIONS_PER_REQUEST`. Instead, we will now flush
as many as possible, and then keep the rest for the next batch.


Release Notes:

- N/A
```

## Parents

- [305e73ebbb2d178e0c0d09d940428c46f305f532](https://git.cafe/gitcafe/zed/commit/305e73ebbb2d178e0c0d09d940428c46f305f532?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2db237aa52ff4aaa0b55b95167f6bc5a04272ad3?format=markdown)
