File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,10 @@ class Http2Transport implements Transport {
395
395
}
396
396
397
397
private canSendPing ( ) {
398
- return this . keepaliveTimeMs > 0 && ( this . keepaliveWithoutCalls || this . activeCalls . size > 0 ) ;
398
+ return (
399
+ this . keepaliveTimeMs > 0 &&
400
+ ( this . keepaliveWithoutCalls || this . activeCalls . size > 0 )
401
+ ) ;
399
402
}
400
403
401
404
private maybeSendPing ( ) {
@@ -446,7 +449,9 @@ class Http2Transport implements Transport {
446
449
this . pendingSendKeepalivePing = false ;
447
450
this . maybeSendPing ( ) ;
448
451
} else if ( ! this . keepaliveTimerId && ! this . keepaliveTimeoutId ) {
449
- this . keepaliveTrace ( 'Starting keepalive timer for ' + this . keepaliveTimeMs + 'ms' ) ;
452
+ this . keepaliveTrace (
453
+ 'Starting keepalive timer for ' + this . keepaliveTimeMs + 'ms'
454
+ ) ;
450
455
this . keepaliveTimerId = setTimeout ( ( ) => {
451
456
this . maybeSendPing ( ) ;
452
457
} , this . keepaliveTimeMs ) . unref ?.( ) ;
You can’t perform that action at this time.
0 commit comments