CartoDB-SQL-API/lib/batch/scheduler/capacity/fixed.js
Daniel García Aubert 5a96dbb59c Run eslint --fix
2019-12-23 18:19:08 +01:00

12 lines
235 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);
};