Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 1f7e114

Browse files
jpurinaugtur
andauthored
Update src/createStreamMiddleware.ts
Co-authored-by: Zbyszek Tenerowicz <[email protected]>
1 parent eeac023 commit 1f7e114

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/createStreamMiddleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export default function createStreamMiddleware(options: Options = {}) {
132132
*/
133133
function retryStuckRequests() {
134134
Object.values(idMap).forEach(({ req, retryCount = 0 }) => {
135+
// Avoid retrying requests without an id - they cannot have matching responses so retry logic doesn't apply
135136
// Check for retry count below ensure that a request is not retried more than 3 times
136137
if (!req.id || retryCount >= 3) {
137138
return;

0 commit comments

Comments
 (0)