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 {
62
62
63
63
// createDefaultClientConfig returns default http client settings
64
64
func createDefaultClientConfig () confighttp.ClientConfig {
65
- return confighttp.ClientConfig {
66
- Timeout : defaultTimeout ,
67
- }
65
+ config := confighttp .NewDefaultClientConfig ()
66
+ config . Timeout = defaultTimeout
67
+ return config
68
68
}
69
69
70
70
// LogFormatType represents log_format
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ func TestCreateDefaultConfig(t *testing.T) {
40
40
GraphiteTemplate : "%{_metric_}" ,
41
41
42
42
ClientConfig : confighttp.ClientConfig {
43
- Timeout : 5 * time .Second ,
43
+ IdleConnTimeout : confighttp .NewDefaultClientConfig ().IdleConnTimeout ,
44
+ MaxIdleConns : confighttp .NewDefaultClientConfig ().MaxIdleConns ,
45
+ Timeout : 5 * time .Second ,
44
46
},
45
47
BackOffConfig : configretry .NewDefaultBackOffConfig (),
46
48
QueueSettings : qs ,
You can’t perform that action at this time.
0 commit comments