重新启用 MCIM 加速 by Glavo · Pull Request #5030 · HMCL-dev/HMCL
Pull request overview
This pull request re-enables MCIM (mcmod-info-mirror) acceleration for Modrinth and CurseForge API calls by uncommenting previously disabled mirror URLs and implementing proper retry logic to handle multiple URL candidates with fallback support.
Changes:
- Re-enabled MCIM mirror URLs in BMCLAPIDownloadProvider for Modrinth and CurseForge APIs
- Implemented retry logic with proper error handling in ModrinthRemoteModRepository
- Implemented retry logic with proper error handling in CurseForgeRemoteModRepository
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| BMCLAPIDownloadProvider.java | Uncommented 5 MCIM mirror URL mappings for Modrinth and CurseForge APIs, enabling acceleration through the mod.mcimirror.top mirror service |
| ModrinthRemoteModRepository.java | Added retry logic to iterate through URL candidates from the download provider, with proper exception aggregation and logging for failures |
| CurseForgeRemoteModRepository.java | Added retry logic similar to Modrinth but adapted to preserve existing search filter processing logic with Levenshtein distance calculations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.