File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
exporter/sumologicexporter Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ type Config struct {
6262
6363// createDefaultClientConfig returns default http client settings
6464func createDefaultClientConfig () confighttp.ClientConfig {
65- return confighttp.ClientConfig {
66- Timeout : defaultTimeout ,
67- }
65+ config := confighttp .NewDefaultClientConfig ()
66+ config . Timeout = defaultTimeout
67+ return config
6868}
6969
7070// LogFormatType represents log_format
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ func TestCreateDefaultConfig(t *testing.T) {
4040 GraphiteTemplate : "%{_metric_}" ,
4141
4242 ClientConfig : confighttp.ClientConfig {
43- Timeout : 5 * time .Second ,
43+ IdleConnTimeout : confighttp .NewDefaultClientConfig ().IdleConnTimeout ,
44+ MaxIdleConns : confighttp .NewDefaultClientConfig ().MaxIdleConns ,
45+ Timeout : 5 * time .Second ,
4446 },
4547 BackOffConfig : configretry .NewDefaultBackOffConfig (),
4648 QueueSettings : qs ,
You can’t perform that action at this time.
0 commit comments