Address ENG-9290.
Added handler component that watches for NOT_ESTABLISHED and NOT_REMOVED holders and retries their processing.
Details
Details
- Started a DM thread and set image avatar.
- Changed client Blob Service URL to a fake one.
- Reset the avatar back to emoji. This caused holder removal that failed.
- Used console logs in the handler to see that it retries every 5s.
- After restoring real Blob URL, it successfully removed that holder.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/handlers/holders-handler.react.js | ||
---|---|---|
4 | I was also considering _throttle here. There's no difference if holder changes (and failures) are infrequent.
| |
44–46 | Just a note - I deliberately used useMemo instead of useCallback for debounce: |
lib/handlers/holders-handler.react.js | ||
---|---|---|
17 | You might be right, maybe increasing to 30s would be better? Or even 60? But I'm worrying about the debounce vs throttle problem I described above - perhaps we should use throttle then |