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 19cdc12 commit bed5e85Copy full SHA for bed5e85
packages/grpc-js/src/server.ts
@@ -1623,6 +1623,9 @@ export class Server {
1623
);
1624
};
1625
1626
+ /* eslint-disable-next-line prefer-const */
1627
+ let sendPing: () => void; // hoisted for use in maybeStartKeepalivePingTimer
1628
+
1629
const maybeStartKeepalivePingTimer = () => {
1630
if (!canSendPing()) {
1631
return;
@@ -1637,7 +1640,7 @@ export class Server {
1637
1640
keepaliveTimeout.unref?.();
1638
1641
1639
1642
- const sendPing = () => {
1643
+ sendPing = () => {
1644
1645
1646
}
0 commit comments