mirror of https://github.com/grpc/grpc-node.git
resolve hoisting
This commit is contained in:
parent
19cdc1233c
commit
bed5e85af9
|
@ -1623,6 +1623,9 @@ export class Server {
|
|||
);
|
||||
};
|
||||
|
||||
/* eslint-disable-next-line prefer-const */
|
||||
let sendPing: () => void; // hoisted for use in maybeStartKeepalivePingTimer
|
||||
|
||||
const maybeStartKeepalivePingTimer = () => {
|
||||
if (!canSendPing()) {
|
||||
return;
|
||||
|
@ -1637,7 +1640,7 @@ export class Server {
|
|||
keepaliveTimeout.unref?.();
|
||||
};
|
||||
|
||||
const sendPing = () => {
|
||||
sendPing = () => {
|
||||
if (!canSendPing()) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue