Showing
1 changed file
with
4 additions
and
4 deletions
@@ -142,11 +142,11 @@ module.exports = { | @@ -142,11 +142,11 @@ module.exports = { | ||
142 | } | 142 | } |
143 | if (options.total_retry_time > 1000 * 60) { | 143 | if (options.total_retry_time > 1000 * 60) { |
144 | console.log('redis连接超时'); | 144 | console.log('redis连接超时'); |
145 | - return undefined; | 145 | + return; |
146 | } | 146 | } |
147 | if (options.attempt > 10) { | 147 | if (options.attempt > 10) { |
148 | console.log('redis连接超过次数'); | 148 | console.log('redis连接超过次数'); |
149 | - return undefined; | 149 | + return; |
150 | } | 150 | } |
151 | return Math.min(options.attempt * 100, 1000); | 151 | return Math.min(options.attempt * 100, 1000); |
152 | } | 152 | } |
@@ -197,11 +197,11 @@ if (isProduction) { | @@ -197,11 +197,11 @@ if (isProduction) { | ||
197 | } | 197 | } |
198 | if (options.total_retry_time > 1000 * 60) { | 198 | if (options.total_retry_time > 1000 * 60) { |
199 | console.log('redis连接超时'); | 199 | console.log('redis连接超时'); |
200 | - return undefined; | 200 | + return; |
201 | } | 201 | } |
202 | if (options.attempt > 10) { | 202 | if (options.attempt > 10) { |
203 | console.log('redis连接超过次数'); | 203 | console.log('redis连接超过次数'); |
204 | - return undefined; | 204 | + return; |
205 | } | 205 | } |
206 | return Math.min(options.attempt * 100, 1000); | 206 | return Math.min(options.attempt * 100, 1000); |
207 | } | 207 | } |
-
Please register or login to post a comment