Skip to content

Commit

Permalink
chore: updated js doc
Browse files Browse the repository at this point in the history
_deletePendingResStream
_deletePendingReqStream
_destroyStreamIfPossible
  • Loading branch information
JS-AK committed Nov 8, 2024
1 parent 9b0181a commit c197d5c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/transit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,7 @@ class Transit {
*
* @param {String} id ID of the stream in `pendingResStreams`
* @param {String} origin NodeID of the origin of the destroy request
*
* @memberof Transit
*/
_deletePendingResStream(id, origin) {
Expand All @@ -1078,7 +1079,8 @@ class Transit {
* and destroy it (if not already ended) with error.
*
* @param {String} id ID of the stream in `pendingReqStreams`
* @param {String} origin Origin of the request
* @param {String} origin NodeID of the origin of the destroy request
*
* @memberof Transit
*/
_deletePendingReqStream(id, origin) {
Expand All @@ -1095,8 +1097,8 @@ class Transit {
* Internal method to destroy a stream if it is not already destroyed.
*
* @param {DuplexStream} stream - The stream to be destroyed.
* @param {String} [errorMessage] - The error message to be used when destroying.
* If not provided, the stream will be destroyed without an error.
* @param {String} errorMessage - The error message to be used when destroying.
*
* @memberof Transit
*/
_destroyStreamIfPossible(stream, errorMessage) {
Expand Down

0 comments on commit c197d5c

Please sign in to comment.