Skip to content

Commit

Permalink
Better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrensel-artera committed Oct 13, 2023
1 parent 83fdc5d commit 3926fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export class Consumer extends TypedEventEmitter {
*/
private get sqsSendOptions(): { abortSignal: AbortSignal } {
return {
// return the current abortController signal or a generic not aborted signal
// return the current abortController signal or a fresh signal that has not been aborted.
// This effectively defaults the signal sent to the AWS SDK to not aborted
abortSignal: this.abortController?.signal || new AbortController().signal
};
}
Expand Down

0 comments on commit 3926fb6

Please sign in to comment.