add some more notes

This commit is contained in:
ansuz
2019-06-25 16:31:21 +02:00
parent 0668abf68c
commit a16d7171ad
2 changed files with 10 additions and 2 deletions

View File

@@ -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");
}