mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
app: remove empty password
This commit is contained in:
@@ -71,7 +71,7 @@ if (config.cacheType === 'memory') {
|
||||
logger.error('Redis error: ', e);
|
||||
},
|
||||
onconnect: () => {
|
||||
logger.info('Redis connect.');
|
||||
logger.info('Redis connected.');
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
@@ -26,6 +26,9 @@ module.exports = function(options = {}) {
|
||||
/**
|
||||
* redisClient
|
||||
*/
|
||||
if (!redisOptions.password) {
|
||||
delete redisOptions.password;
|
||||
}
|
||||
const redisClient = wrapper(Redis.createClient(redisUrl, redisOptions));
|
||||
redisClient.on('error', (error) => {
|
||||
redisAvailable = false;
|
||||
|
||||
Reference in New Issue
Block a user