1
This commit is contained in:
parent
ce0b30e27a
commit
f81baf8c26
5
app.js
5
app.js
@ -153,6 +153,10 @@ function getInstanceId() {
|
||||
return Number(utils.getArgv('i'));
|
||||
}
|
||||
|
||||
async function sleep(timeout) {
|
||||
return utils.sleep(timeout);
|
||||
}
|
||||
|
||||
registerHandler('Ops', 'selfChecking', async (req, rsp) => {
|
||||
if (rsp) {
|
||||
utils.rspOk(rsp);
|
||||
@ -178,3 +182,4 @@ exports.addStaticDirectory = addStaticDirectory;
|
||||
exports.getPid = getPid;
|
||||
exports.getNodeId = getNodeId;
|
||||
exports.getInstanceId = getInstanceId;
|
||||
exports.sleep = sleep;
|
||||
|
Loading…
x
Reference in New Issue
Block a user