add some more notes
This commit is contained in:
parent
0668abf68c
commit
a16d7171ad
@ -581,6 +581,15 @@ module.exports.create = function (cfg) {
|
|||||||
if (msg[3] === 'CLEAR_OWNED_CHANNEL') {
|
if (msg[3] === 'CLEAR_OWNED_CHANNEL') {
|
||||||
onChannelCleared(ctx, msg[4]);
|
onChannelCleared(ctx, msg[4]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME METADATA
|
||||||
|
/*
|
||||||
|
if (msg[3] === 'SET_METADATA') { // or whatever we call the RPC????
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
sendMsg(ctx, user, [0, HISTORY_KEEPER_ID, 'MSG', user.id, JSON.stringify([parsed[0]].concat(output))]);
|
sendMsg(ctx, user, [0, HISTORY_KEEPER_ID, 'MSG', user.id, JSON.stringify([parsed[0]].concat(output))]);
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@ -197,7 +197,6 @@ const mkOffsetCounter = () => {
|
|||||||
|
|
||||||
const readMessagesBin = (env, id, start, msgHandler, cb) => {
|
const readMessagesBin = (env, id, start, msgHandler, cb) => {
|
||||||
const stream = Fs.createReadStream(mkPath(env, id), { start: start });
|
const stream = Fs.createReadStream(mkPath(env, id), { start: start });
|
||||||
// TODO get the channel and add the atime
|
|
||||||
let keepReading = true;
|
let keepReading = true;
|
||||||
Pull(
|
Pull(
|
||||||
ToPull.read(stream),
|
ToPull.read(stream),
|
||||||
@ -213,7 +212,6 @@ const readMessagesBin = (env, id, start, msgHandler, cb) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var checkPath = function (path, callback) {
|
var checkPath = function (path, callback) {
|
||||||
// TODO check if we actually need to use stat at all
|
|
||||||
Fs.stat(path, function (err) {
|
Fs.stat(path, function (err) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
callback(undefined, true);
|
callback(undefined, true);
|
||||||
@ -314,6 +312,7 @@ var listChannels = function (root, handler, cb) {
|
|||||||
// move a channel's log file from its current location
|
// move a channel's log file from its current location
|
||||||
// to an equivalent location in the cold storage directory
|
// to an equivalent location in the cold storage directory
|
||||||
var archiveChannel = function (env, channelName, cb) {
|
var archiveChannel = function (env, channelName, cb) {
|
||||||
|
// TODO close channels before archiving them?
|
||||||
if (!env.retainData) {
|
if (!env.retainData) {
|
||||||
return void cb("ARCHIVES_DISABLED");
|
return void cb("ARCHIVES_DISABLED");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user