drop usage of historyKeeper.setConfig
This commit is contained in:
@@ -4,7 +4,6 @@ const WebSocketServer = require('ws').Server;
|
||||
const NetfluxSrv = require('chainpad-server/NetfluxWebsocketSrv');
|
||||
|
||||
module.exports.create = function (config) {
|
||||
var historyKeeper;
|
||||
var rpc;
|
||||
const log = config.log;
|
||||
const wsConfig = {
|
||||
@@ -50,11 +49,9 @@ module.exports.create = function (config) {
|
||||
log: log,
|
||||
};
|
||||
// XXX historyKeeper exports a `setConfig` method
|
||||
historyKeeper = HK.create(hkConfig);
|
||||
}).nThen(function () {
|
||||
|
||||
var wsSrv = new WebSocketServer(wsConfig);
|
||||
// XXX NetfluxSrv shares some internal functions with historyKeeper
|
||||
// by passing them to setConfig
|
||||
var historyKeeper = HK.create(hkConfig);
|
||||
NetfluxSrv.run(wsSrv, config, historyKeeper);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user