We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853f4e3 commit 8a15ff9Copy full SHA for 8a15ff9
checker/patroni_leader_checker.go
@@ -20,15 +20,13 @@ type PatroniLeaderChecker struct {
20
21
// NewPatroniLeaderChecker returns a new instance
22
func NewPatroniLeaderChecker(conf *vipconfig.Config) (*PatroniLeaderChecker, error) {
23
-
24
tlsConfig, err := getTransport(conf)
25
if err != nil {
26
return nil, err
27
}
28
29
- transport := &http.Transport{}
30
- if tlsConfig != nil {
31
- transport.TLSClientConfig = tlsConfig
+ transport := &http.Transport{
+ TLSClientConfig: tlsConfig,
32
33
34
client := &http.Client{
0 commit comments