Run prettier
This commit is contained in:
parent
61ca207974
commit
9eb1240bc1
|
@ -4,7 +4,7 @@ const { isEqual } = require("lodash");
|
|||
const { calculateElapsedTime, getResponseContent, isPortalModuleEnabled } = require("../utils");
|
||||
const { SkynetClient, stringToUint8ArrayUtf8, genKeyPairAndSeed } = require("skynet-js");
|
||||
|
||||
const MODULE_BLOCKER = 'b'
|
||||
const MODULE_BLOCKER = "b";
|
||||
|
||||
const skynetClient = new SkynetClient(process.env.SKYNET_PORTAL_API);
|
||||
const exampleSkylink = "AACogzrAimYPG42tDOKhS3lXZD8YvlF8Q8R17afe95iV2Q";
|
||||
|
@ -177,7 +177,9 @@ async function blockerHealthCheck(done) {
|
|||
const data = { up: false };
|
||||
|
||||
try {
|
||||
const response = await got(`http://${process.env.BLOCKER_HOST}:${process.env.BLOCKER_PORT}/health`, { responseType: "json" });
|
||||
const response = await got(`http://${process.env.BLOCKER_HOST}:${process.env.BLOCKER_PORT}/health`, {
|
||||
responseType: "json",
|
||||
});
|
||||
|
||||
data.statusCode = response.statusCode;
|
||||
data.response = response.body;
|
||||
|
@ -191,7 +193,7 @@ async function blockerHealthCheck(done) {
|
|||
// this is a no-op but it's added to explicitly document the ip property
|
||||
// should not be set on the data object to prevent the IP from being compared
|
||||
// to the server's IP - this is not required for this check and will fail
|
||||
delete data.ip
|
||||
delete data.ip;
|
||||
|
||||
done({ name: "blocker", time: calculateElapsedTime(time), ...data });
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ function ensureValidJSON(object) {
|
|||
* isPortalModuleEnabled returns true if the given module is enabled
|
||||
*/
|
||||
function isPortalModuleEnabled(module) {
|
||||
return process.env.PORTAL_MODULES && process.env.PORTAL_MODULES.indexOf(module) !== -1
|
||||
return process.env.PORTAL_MODULES && process.env.PORTAL_MODULES.indexOf(module) !== -1;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
Reference in New Issue