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