Details
Details
Check that on success of all messages array is empty, otherwise it returns failed messages.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/tunnelbroker/peer-to-peer-context.js | ||
---|---|---|
197–199 ↗ | (On Diff #44138) | It is quite confusing that this function returns IDs of failed messages. How about modifying the return type to be an object with the IDs, e.g. {+result: 'success'} | {+result: 'failure', +failedMessageIDs: $ReadOnlyArray<string>}? |