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 5369539 commit 385a16fCopy full SHA for 385a16f
pkg/vitess/api_client.go
@@ -8,6 +8,7 @@ import (
8
"strings"
9
"time"
10
11
+ "github.com/github/freno/pkg/base"
12
"vitess.io/vitess/go/vt/proto/topodata"
13
)
14
@@ -25,15 +26,13 @@ func (t Tablet) IsValidReplica() bool {
25
26
27
// Manager gathers info from Vitess
28
type Manager struct {
- client http.Client
29
+ client *http.Client
30
}
31
32
// NewManager returns a new manager for Vitess
33
func NewManager(apiTimeout time.Duration) *Manager {
34
return &Manager{
- client: http.Client{
35
- Timeout: apiTimeout,
36
- },
+ client: base.SetupHttpClient(apiTimeout),
37
38
39
0 commit comments