Skip to content

Commit 71d035b

Browse files
committed
Fix formatting
1 parent 981efb6 commit 71d035b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/grpc-js/src/transport.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,10 @@ class Http2Transport implements Transport {
395395
}
396396

397397
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+
);
399402
}
400403

401404
private maybeSendPing() {
@@ -446,7 +449,9 @@ class Http2Transport implements Transport {
446449
this.pendingSendKeepalivePing = false;
447450
this.maybeSendPing();
448451
} 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+
);
450455
this.keepaliveTimerId = setTimeout(() => {
451456
this.maybeSendPing();
452457
}, this.keepaliveTimeMs).unref?.();

0 commit comments

Comments
 (0)