Commit fab2e85
refactor: improve _wait_for_repo_ready per CodeRabbit review
Improvements:
- Add comprehensive docstring explaining the race condition fix
- Use time.monotonic() for stricter wall-clock timing
- Narrow exception handling to HfHubHTTPError instead of bare Exception
Co-authored-by: CodeRabbit <support@coderabbit.ai>1 parent b6490dc commit fab2e85
1 file changed
+19
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
273 | 288 | | |
274 | 289 | | |
275 | 290 | | |
276 | | - | |
| 291 | + | |
277 | 292 | | |
278 | 293 | | |
279 | | - | |
| 294 | + | |
280 | 295 | | |
281 | 296 | | |
282 | 297 | | |
| |||
0 commit comments