Commit 6b82a4fc4a673d7bd13dc0b0c5d84a11d716b9ef
1 parent
ee8f58b592
Exists in
master
incr decr trx count
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
gentong.js
... | ... | @@ -57,7 +57,13 @@ function topupRequest(task) { |
57 | 57 | |
58 | 58 | logger.info('Creating http request to gateway', {options: options}); |
59 | 59 | |
60 | + if (aaa) { | |
61 | + aaa.incrementTrxCount(); | |
62 | + aaa.incrementActiveTrxCount(); | |
63 | + } | |
64 | + | |
60 | 65 | request(options, function (error, response, body) { |
66 | + aaa.decrementActiveTrxCount(); | |
61 | 67 | |
62 | 68 | if (error) { |
63 | 69 |