File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -526,10 +526,9 @@ export class Subscriber extends EventEmitter {
526526 const ackTimeSeconds = ( Date . now ( ) - message . received ) / 1000 ;
527527 this . updateAckDeadline ( ackTimeSeconds ) ;
528528
529- // Ignore this in this version of the method (but hook then/ catch
529+ // Ignore this in this version of the method (but hook catch
530530 // to avoid unhandled exceptions).
531531 const resultPromise = this . _acks . add ( message ) ;
532- resultPromise . then ( ( ) => { } ) ;
533532 resultPromise . catch ( ( ) => { } ) ;
534533
535534 await this . _acks . onFlush ( ) ;
@@ -606,7 +605,6 @@ export class Subscriber extends EventEmitter {
606605 const startTime = Date . now ( ) ;
607606
608607 const responsePromise = this . _modAcks . add ( message , deadline ) ;
609- responsePromise . then ( ( ) => { } ) ;
610608 responsePromise . catch ( ( ) => { } ) ;
611609
612610 await this . _modAcks . onFlush ( ) ;
You can’t perform that action at this time.
0 commit comments