From 46ebd7b40b8318fb5a62f155790abe5334b51861 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 12 Oct 2020 17:40:21 +0530 Subject: [PATCH] remove unsupported storage configuration parameters --- lib/storage/blob.js | 3 --- lib/storage/file.js | 2 -- 2 files changed, 5 deletions(-) diff --git a/lib/storage/blob.js b/lib/storage/blob.js index 006f5ca80..21f38a73a 100644 --- a/lib/storage/blob.js +++ b/lib/storage/blob.js @@ -204,14 +204,12 @@ var tryId = function (path, cb) { Fs.access(path, Fs.constants.R_OK | Fs.constants.W_OK, function (e) { if (!e) { // generate a new id (with the same prefix) and recurse - //WARN('ownedUploadComplete', 'id is already used '+ id); return void cb('EEXISTS'); } else if (e.code === 'ENOENT') { // no entry, so it's safe for us to proceed return void cb(); } else { // it failed in an unexpected way. log it - //WARN('ownedUploadComplete', e); return void cb(e.code); } }); @@ -229,7 +227,6 @@ var owned_upload_complete = function (Env, safeKey, id, cb) { } if (!isValidId(id)) { - //WARN('ownedUploadComplete', "id is invalid"); return void cb('EINVAL_ID'); } diff --git a/lib/storage/file.js b/lib/storage/file.js index b209cb597..16f8c8ba7 100644 --- a/lib/storage/file.js +++ b/lib/storage/file.js @@ -996,8 +996,6 @@ module.exports.create = function (conf, _cb) { root: conf.filePath || './datastore', archiveRoot: conf.archivePath || './data/archive', channels: { }, - channelExpirationMs: conf.channelExpirationMs || 30000, - verbose: conf.verbose, batchGetChannel: BatchRead('store_batch_channel'), }; var it;