mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-06-17 15:05:39 +02:00
performance: exclude lyrics if they are not enabled
This commit is contained in:
@@ -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