mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-25 01:13:40 +01:00
docs: Update GetHTTPClient comment
This commit is contained in:
parent
7daf2b5cac
commit
319f460553
@ -17,7 +17,7 @@ import (
|
|||||||
// injectedHTTPClient is used for testing purposes
|
// injectedHTTPClient is used for testing purposes
|
||||||
var injectedHTTPClient *http.Client
|
var injectedHTTPClient *http.Client
|
||||||
|
|
||||||
// GetHTTPClient returns the shared HTTP client
|
// GetHTTPClient returns the shared HTTP client, or the client from the configuration passed
|
||||||
func GetHTTPClient(config *Config) *http.Client {
|
func GetHTTPClient(config *Config) *http.Client {
|
||||||
if injectedHTTPClient != nil {
|
if injectedHTTPClient != nil {
|
||||||
return injectedHTTPClient
|
return injectedHTTPClient
|
||||||
|
Loading…
Reference in New Issue
Block a user