diff --git a/gentong.js b/gentong.js index 5d4c70e..6681f4f 100644 --- a/gentong.js +++ b/gentong.js @@ -57,7 +57,13 @@ function topupRequest(task) { logger.info('Creating http request to gateway', {options: options}); + if (aaa) { + aaa.incrementTrxCount(); + aaa.incrementActiveTrxCount(); + } + request(options, function (error, response, body) { + aaa.decrementActiveTrxCount(); if (error) {