We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bed5e85 commit d325b5fCopy full SHA for d325b5f
packages/grpc-js/src/server.ts
@@ -1443,6 +1443,9 @@ export class Server {
1443
);
1444
};
1445
1446
+ /* eslint-disable-next-line prefer-const */
1447
+ let sendPing: () => void; // hoisted for use in maybeStartKeepalivePingTimer
1448
+
1449
const maybeStartKeepalivePingTimer = () => {
1450
if (!canSendPing()) {
1451
return;
@@ -1457,7 +1460,7 @@ export class Server {
1457
1460
keepaliveTimeout.unref?.();
1458
1461
1459
1462
- const sendPing = () => {
1463
+ sendPing = () => {
1464
1465
1466
}
0 commit comments