Details
Details
Check that on success of all messages array is empty, otherwise it returns failed messages.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- publish
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/tunnelbroker/peer-to-peer-context.js | ||
---|---|---|
197–199 | 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>}? |