...
|
...
|
@@ -142,11 +142,11 @@ module.exports = { |
|
|
}
|
|
|
if (options.total_retry_time > 1000 * 60) {
|
|
|
console.log('redis连接超时');
|
|
|
return undefined;
|
|
|
return;
|
|
|
}
|
|
|
if (options.attempt > 10) {
|
|
|
console.log('redis连接超过次数');
|
|
|
return undefined;
|
|
|
return;
|
|
|
}
|
|
|
return Math.min(options.attempt * 100, 1000);
|
|
|
}
|
...
|
...
|
@@ -197,11 +197,11 @@ if (isProduction) { |
|
|
}
|
|
|
if (options.total_retry_time > 1000 * 60) {
|
|
|
console.log('redis连接超时');
|
|
|
return undefined;
|
|
|
return;
|
|
|
}
|
|
|
if (options.attempt > 10) {
|
|
|
console.log('redis连接超过次数');
|
|
|
return undefined;
|
|
|
return;
|
|
|
}
|
|
|
return Math.min(options.attempt * 100, 1000);
|
|
|
}
|
...
|
...
|
|