Commit 73ca037
committed
refactor(quota): replace _httpErrorCode 507 with _isQuotaError bool flag.
Instead of faking an HTTP 507 response code on items that exceeded quota
during discovery, rename the unused _errorMayBeBlacklisted field to
_isQuotaError and set it at the three discovery call sites.
blacklistUpdate already checked that flag for the mayBlacklist gate;
createBlacklistEntry now checks it alongside the real HTTP 507
path to write the InsufficientRemoteStorage category.
Signed-off-by: Camila Ayres <hello@camilasan.com>1 parent fa7f0b5 commit 73ca037
3 files changed
Lines changed: 14 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1250 | 1250 | | |
1251 | 1251 | | |
1252 | 1252 | | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
1258 | 1257 | | |
1259 | 1258 | | |
1260 | 1259 | | |
| |||
2557 | 2556 | | |
2558 | 2557 | | |
2559 | 2558 | | |
2560 | | - | |
2561 | | - | |
2562 | | - | |
| 2559 | + | |
2563 | 2560 | | |
2564 | 2561 | | |
2565 | 2562 | | |
| |||
2582 | 2579 | | |
2583 | 2580 | | |
2584 | 2581 | | |
2585 | | - | |
| 2582 | + | |
2586 | 2583 | | |
2587 | 2584 | | |
2588 | 2585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | | - | |
267 | | - | |
| 266 | + | |
| 267 | + | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
0 commit comments