Skip to content

CDN redirect support and retry handling#1695

Merged
ernado merged 2 commits intogotd:mainfrom
borzovplus:dowloader-with-cdn-redirect-support
Mar 17, 2026
Merged

CDN redirect support and retry handling#1695
ernado merged 2 commits intogotd:mainfrom
borzovplus:dowloader-with-cdn-redirect-support

Conversation

@borzovplus
Copy link
Contributor

Added "AllowCDN" flag to telegram client.

Added "WithRetryHandler" for download builder.

@borzovplus borzovplus force-pushed the dowloader-with-cdn-redirect-support branch from 0ff08cb to abadfe2 Compare March 17, 2026 15:12
@codecov
Copy link

codecov bot commented Mar 17, 2026

Codecov Report

❌ Patch coverage is 80.63466% with 238 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.67%. Comparing base (f37cb63) to head (0e7aeae).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
telegram/downloader/cdn_state_machine.go 74.05% 37 Missing and 18 partials ⚠️
telegram/downloader/cdn_verify.go 77.22% 32 Missing and 14 partials ⚠️
telegram/cdn_pool_manager.go 80.58% 20 Missing and 13 partials ⚠️
telegram/cdn.go 86.00% 14 Missing and 7 partials ⚠️
telegram/pool.go 70.83% 10 Missing and 4 partials ⚠️
telegram/downloader/retry.go 71.05% 8 Missing and 3 partials ⚠️
telegram/downloader/builder.go 87.67% 7 Missing and 2 partials ⚠️
telegram/cdn_conn_dead.go 76.66% 5 Missing and 2 partials ⚠️
telegram/dcs/plain.go 0.00% 7 Missing ⚠️
telegram/dc_transfer.go 0.00% 6 Missing ⚠️
... and 11 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1695      +/-   ##
==========================================
+ Coverage   68.63%   69.67%   +1.04%     
==========================================
  Files         452      461       +9     
  Lines       18910    20043    +1133     
==========================================
+ Hits        12978    13965     +987     
- Misses       4963     5042      +79     
- Partials      969     1036      +67     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ernado ernado merged commit 48a5864 into gotd:main Mar 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants