|
|
|
@ -122,6 +122,7 @@ module.exports.create = function (Env, cb) {
|
|
|
|
|
// create a pin store
|
|
|
|
|
Store.create({
|
|
|
|
|
filePath: pinPath,
|
|
|
|
|
archivePath: Env.paths.archive,
|
|
|
|
|
}, w(function (err, s) {
|
|
|
|
|
if (err) { throw err; }
|
|
|
|
|
Env.pinStore = s;
|
|
|
|
@ -130,7 +131,7 @@ module.exports.create = function (Env, cb) {
|
|
|
|
|
// create a channel store
|
|
|
|
|
Store.create({
|
|
|
|
|
filePath: Env.paths.data,
|
|
|
|
|
archivepath: Env.paths.archive,
|
|
|
|
|
archivePath: Env.paths.archive,
|
|
|
|
|
}, w(function (err, _store) {
|
|
|
|
|
if (err) { throw err; }
|
|
|
|
|
Env.msgStore = _store; // API used by rpc
|
|
|
|
|