mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-10-16 22:07:30 +02:00
performance: exclude lyrics if they are not enabled
This commit is contained in:
1 parent
7a27845e75
commit
9618108f2a
3 files changed
+36
-10
No files matched your search
@@ -121,6 +121,10 @@ func New(cfg *config.Config) (*Main, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
// downloaderMaxConnsPerHost picks the per-host idle connection cap for the
|
||||
// shared download client. We floor at 16 so artwork/manifest fetches and
|
||||
// concurrent track downloads to the same CDN host can reuse keep-alive
|
||||
// sockets even when the user configured a tiny max_connections.
|
||||
func downloaderMaxConnsPerHost(maxConnections int) int {
|
||||
if maxConnections > 16 {
|
||||
return maxConnections
|
||||
|
||||
Reference in new issue
Block a user