From 71d035b5bf1a6fa299f1362a8e73caf446df16db Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Mon, 24 Jul 2023 13:54:30 -0700 Subject: [PATCH] Fix formatting --- packages/grpc-js/src/transport.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/grpc-js/src/transport.ts b/packages/grpc-js/src/transport.ts index 16f889c3..aa17161f 100644 --- a/packages/grpc-js/src/transport.ts +++ b/packages/grpc-js/src/transport.ts @@ -395,7 +395,10 @@ class Http2Transport implements Transport { } private canSendPing() { - return this.keepaliveTimeMs > 0 && (this.keepaliveWithoutCalls || this.activeCalls.size > 0); + return ( + this.keepaliveTimeMs > 0 && + (this.keepaliveWithoutCalls || this.activeCalls.size > 0) + ); } private maybeSendPing() { @@ -446,7 +449,9 @@ class Http2Transport implements Transport { this.pendingSendKeepalivePing = false; this.maybeSendPing(); } else if (!this.keepaliveTimerId && !this.keepaliveTimeoutId) { - this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); + this.keepaliveTrace( + 'Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms' + ); this.keepaliveTimerId = setTimeout(() => { this.maybeSendPing(); }, this.keepaliveTimeMs).unref?.();