-
-
Notifications
You must be signed in to change notification settings - Fork 22
Request retry count #30
Conversation
1e4d971 to
406a395
Compare
|
The build is red as PR is marginally missing the threshold for test coverage. I have test covered the functionality already. |
src/createStreamMiddleware.ts
Outdated
| if (!context) { | ||
| throw new Error(`StreamMiddleware - Unknown response id "${res.id}"`); | ||
| console.warn(`StreamMiddleware - Unknown response id "${res.id}"`); | ||
| return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(could) Document why this is just a warning, not an error with a long comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
Question: Should we respond with an error instead of failing silently if we run out of retries? I believe we should. |
Co-authored-by: Zbyszek Tenerowicz <[email protected]>
…ddleware-stream into request_retry_count
Gudahtt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! One remaining lint error but then I can approve
Gudahtt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The PR has following changes, in context of DAPP action replay for MV3:
request.idisundefined,undefinedis valid value ofrequest.id.