Commit 6e9df683854cd6887da8c4a7a5bd01587f9d1ca5
1 parent
7ec3b0a8da
Exists in
master
refactor to auto_resend_delay_secs
Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff
... | ... | @@ -11,7 +11,7 @@ var redisClient; |
11 | 11 | var resendHandlers = LRU({max: 2000, maxAge: 1000 * 3600 * 36}); |
12 | 12 | |
13 | 13 | function dumpStats() { |
14 | - if (config.globals.auto_resend_on_delay_secs) { | |
14 | + if (config.globals.auto_resend_delay_secs) { | |
15 | 15 | logger.verbose('DUMP STATS', { |
16 | 16 | 'resendHandlers:length': resendHandlers.length, |
17 | 17 | 'resendHandlers:itemCount': resendHandlers.itemCount, |
... | ... | @@ -250,7 +250,7 @@ function registerResendDelay(task) { |
250 | 250 | return; |
251 | 251 | } |
252 | 252 | |
253 | - if (!config || !config.globals || !config.globals.auto_resend_on_delay_secs) { | |
253 | + if (!config || !config.globals || !config.globals.auto_resend_delay_secs) { | |
254 | 254 | return; |
255 | 255 | } |
256 | 256 | |
... | ... | @@ -273,7 +273,7 @@ function registerResendDelay(task) { |
273 | 273 | |
274 | 274 | logger.verbose('Registering resend delay task request', {task: task}); |
275 | 275 | var handlerData = { |
276 | - handler: setTimeout(partner.topupRequest, config.globals.auto_resend_on_delay_secs, task), | |
276 | + handler: setTimeout(partner.topupRequest, config.globals.auto_resend_delay_secs, task), | |
277 | 277 | task: task, |
278 | 278 | retry: retry |
279 | 279 | } |