diff --git a/lib/core/ipc.js b/lib/core/ipc.js index 9bae112e2..e84e88abc 100644 --- a/lib/core/ipc.js +++ b/lib/core/ipc.js @@ -13,8 +13,8 @@ class IPC { connect(done) { const self = this; - function connecting(socket) { - let connectedBefore = false, alreadyDisconnected = false;; + function connecting(_socket) { + let connectedBefore = false, alreadyDisconnected = false; ipc.of['embark'].on('connect',function() { connectedBefore = true; if (!alreadyDisconnected) { @@ -38,8 +38,8 @@ class IPC { } serve() { - ipc.serve(this.socketPath, () => {}) - ipc.server.start() + ipc.serve(this.socketPath, () => {}); + ipc.server.start(); this.logger.info(`pid ${process.pid} listening on ${this.socketPath}`); } @@ -52,7 +52,7 @@ class IPC { } let reply = function(replyData) { self.reply(socket, 'compile', replyData); - } + }; done(data.message, reply, socket); }); } diff --git a/lib/modules/solidity/solcW.js b/lib/modules/solidity/solcW.js index 93139f8a1..617eabb62 100644 --- a/lib/modules/solidity/solcW.js +++ b/lib/modules/solidity/solcW.js @@ -3,7 +3,6 @@ let fs = require('../../core/fs.js'); let currentSolcVersion = require('../../../package.json').dependencies.solc; const ProcessLauncher = require('../../process/processLauncher'); const uuid = require('uuid/v1'); -let ipc = require('node-ipc') class SolcW { @@ -73,7 +72,6 @@ class SolcW { compile(jsonObj, done) { const id = uuid(); - let a = new Date(); if (this.ipc.isClient() && this.ipc.connected) { return this.ipc.request('compile', jsonObj, done);