prepare to merge history keeper and rpc

This commit is contained in:
ansuz
2020-01-27 17:57:39 -05:00
parent b093d3f0d2
commit 80c012f34d
3 changed files with 92 additions and 91 deletions

View File

@@ -1,6 +1,5 @@
/* jshint esversion: 6 */
/* global Buffer */
;(function () { 'use strict';
const nThen = require('nthen');
const Nacl = require('tweetnacl/nacl-fast');
@@ -63,6 +62,8 @@ const isValidValidateKeyString = function (key) {
}
};
var CHECKPOINT_PATTERN = /^cp\|(([A-Za-z0-9+\/=]+)\|)?/;
module.exports.create = function (cfg) {
const rpc = cfg.rpc;
const tasks = cfg.tasks;
@@ -385,8 +386,6 @@ module.exports.create = function (cfg) {
return true;
};
var CHECKPOINT_PATTERN = /^cp\|(([A-Za-z0-9+\/=]+)\|)?/;
/* onChannelMessage
Determine what we should store when a message a broadcasted to a channel"
@@ -992,5 +991,3 @@ module.exports.create = function (cfg) {
onDirectMessage: onDirectMessage,
};
};
}());