Weekend fun with further optimisations.

This commit is contained in:
2025-09-13 23:42:02 +01:00
parent a31fd64112
commit 7457a901a9
48 changed files with 8726 additions and 3268 deletions
+4 -2
View File
@@ -245,10 +245,12 @@ func CreateHTTPClientWithConfig(config HTTPClientConfig) *http.Client {
// CreateDefaultHTTPClient creates a default HTTP client using the global factory
func CreateDefaultHTTPClient() *http.Client {
return globalHTTPClientFactory.CreateDefaultClient()
// Use pooled client to prevent connection exhaustion
return CreatePooledHTTPClient(DefaultHTTPClientConfig())
}
// CreateTokenHTTPClient creates a token HTTP client using the global factory
func CreateTokenHTTPClient() *http.Client {
return globalHTTPClientFactory.CreateTokenClient()
// Use pooled client to prevent connection exhaustion
return CreatePooledHTTPClient(TokenHTTPClientConfig())
}