Skip to content

Commit 4f949a4

Browse files
comment cleanup
1 parent 4dd5de9 commit 4f949a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/vitess/api_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ func (t Tablet) IsValidReplica() bool {
2424
return t.Type == topodata.TabletType_REPLICA
2525
}
2626

27-
// Client gathers info from Vitess
27+
// Client gathers info from the Vitess API
2828
type Client struct {
2929
client *http.Client
3030
}
3131

32-
// New returns a new handler for Vitess
32+
// New returns a new Client
3333
func New(apiTimeout time.Duration) *Client {
3434
return &Client{
3535
client: base.SetupHttpClient(apiTimeout),

pkg/vitess/api_client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func TestParseTablets(t *testing.T) {
5050
}))
5151
defer vitessApi.Close()
5252

53-
vt := New(time.Duration(1) * time.Second)
53+
vt := New(time.Second)
5454

5555
t.Run("success", func(t *testing.T) {
5656
tablets, err := vt.ParseTablets(vitessApi.URL, "test", "00")

0 commit comments

Comments
 (0)