remove unsupported storage configuration parameters

pull/1/head
ansuz 4 years ago
parent 369c92c01d
commit 46ebd7b40b

@ -204,14 +204,12 @@ var tryId = function (path, cb) {
Fs.access(path, Fs.constants.R_OK | Fs.constants.W_OK, function (e) { Fs.access(path, Fs.constants.R_OK | Fs.constants.W_OK, function (e) {
if (!e) { if (!e) {
// generate a new id (with the same prefix) and recurse // generate a new id (with the same prefix) and recurse
//WARN('ownedUploadComplete', 'id is already used '+ id);
return void cb('EEXISTS'); return void cb('EEXISTS');
} else if (e.code === 'ENOENT') { } else if (e.code === 'ENOENT') {
// no entry, so it's safe for us to proceed // no entry, so it's safe for us to proceed
return void cb(); return void cb();
} else { } else {
// it failed in an unexpected way. log it // it failed in an unexpected way. log it
//WARN('ownedUploadComplete', e);
return void cb(e.code); return void cb(e.code);
} }
}); });
@ -229,7 +227,6 @@ var owned_upload_complete = function (Env, safeKey, id, cb) {
} }
if (!isValidId(id)) { if (!isValidId(id)) {
//WARN('ownedUploadComplete', "id is invalid");
return void cb('EINVAL_ID'); return void cb('EINVAL_ID');
} }

@ -996,8 +996,6 @@ module.exports.create = function (conf, _cb) {
root: conf.filePath || './datastore', root: conf.filePath || './datastore',
archiveRoot: conf.archivePath || './data/archive', archiveRoot: conf.archivePath || './data/archive',
channels: { }, channels: { },
channelExpirationMs: conf.channelExpirationMs || 30000,
verbose: conf.verbose,
batchGetChannel: BatchRead('store_batch_channel'), batchGetChannel: BatchRead('store_batch_channel'),
}; };
var it; var it;

Loading…
Cancel
Save