MCPcopy Index your code
hub / github.com/scality/cloudserver / stopRefillJob

Function stopRefillJob

lib/api/apiUtils/rateLimit/refillJob.js:115–121  ·  view source on GitHub ↗

* Stop the refill job * Used during graceful shutdown

(logger)

Source from the content-addressed store, hash-verified

113 * Used during graceful shutdown
114 */
115function stopRefillJob(logger) {
116 if (refillTimer) {
117 clearTimeout(refillTimer);
118 refillTimer = null;
119 logger.info('stopped token refill job');
120 }
121}
122
123module.exports = {
124 startRefillJob,

Callers 1

cleanUpMethod · 0.85

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected