CartoDB-SQL-API/batch/scheduler/capacity/fixed.js
2023-05-19 00:42:48 +08:00

12 lines
233 B
JavaScript

'use strict';
function FixedCapacity(capacity) {
this.capacity = Math.max(1, capacity);
}
module.exports = FixedCapacity;
FixedCapacity.prototype.getCapacity = function(callback) {
return callback(null, this.capacity);
};