add some more notes

pull/1/head
ansuz 6 years ago
parent 0668abf68c
commit a16d7171ad

@ -581,6 +581,15 @@ module.exports.create = function (cfg) {
if (msg[3] === 'CLEAR_OWNED_CHANNEL') {
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))]);
});
} catch (e) {

@ -197,7 +197,6 @@ const mkOffsetCounter = () => {
const readMessagesBin = (env, id, start, msgHandler, cb) => {
const stream = Fs.createReadStream(mkPath(env, id), { start: start });
// TODO get the channel and add the atime
let keepReading = true;
Pull(
ToPull.read(stream),
@ -213,7 +212,6 @@ const readMessagesBin = (env, id, start, msgHandler, cb) => {
};
var checkPath = function (path, callback) {
// TODO check if we actually need to use stat at all
Fs.stat(path, function (err) {
if (!err) {
callback(undefined, true);
@ -314,6 +312,7 @@ var listChannels = function (root, handler, cb) {
// move a channel's log file from its current location
// to an equivalent location in the cold storage directory
var archiveChannel = function (env, channelName, cb) {
// TODO close channels before archiving them?
if (!env.retainData) {
return void cb("ARCHIVES_DISABLED");
}

Loading…
Cancel
Save