(bucketName, bytes)
| 125 | } |
| 126 | |
| 127 | incrementBytesForBucket(bucketName, bytes) { |
| 128 | if (!this._data.bucket.has(bucketName)) { |
| 129 | this._data.bucket.set(bucketName, { current: 0, nonCurrent: 0, inflight: 0 }); |
| 130 | } |
| 131 | const bucket = this._data.bucket.get(bucketName); |
| 132 | bucket.current += bytes; |
| 133 | this._data.bucket.set(bucketName, bucket); |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | module.exports = { |
no outgoing calls
no test coverage detected