lint compliance

pull/1/head
ansuz 5 years ago
parent 67dd4a608c
commit 631ea54b49

@ -1,3 +1,5 @@
/* jshint esversion: 6 */
/* global process */
const Nacl = require('tweetnacl/nacl-fast'); const Nacl = require('tweetnacl/nacl-fast');
// XXX npm "os" and "child_process" // XXX npm "os" and "child_process"
@ -7,7 +9,7 @@ const Nacl = require('tweetnacl/nacl-fast');
console.log('New child process', process.pid); console.log('New child process', process.pid);
process.on('message', function (data) { process.on('message', function (data) {
console.log('In process', process.pid) console.log('In process', process.pid);
console.log(+new Date(), "Message received by subprocess"); console.log(+new Date(), "Message received by subprocess");
if (!data || !data.key || !data.msg || !data.txid) { if (!data || !data.key || !data.msg || !data.txid) {
process.send({ process.send({

@ -3,7 +3,7 @@
const Core = module.exports; const Core = module.exports;
const Util = require("../common-util"); const Util = require("../common-util");
const escapeKeyCharacters = Util.escapeKeyCharacters; const escapeKeyCharacters = Util.escapeKeyCharacters;
const { fork } = require('child_process'); //const { fork } = require('child_process');
/* Use Nacl for checking signatures of messages */ /* Use Nacl for checking signatures of messages */
const Nacl = require("tweetnacl/nacl-fast"); const Nacl = require("tweetnacl/nacl-fast");

Loading…
Cancel
Save