Skip to content

Commit 7253b9e

Browse files
committed
make compiler happy
1 parent a62304f commit 7253b9e

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

opcmds/cmd_listpd.go

+19-18
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import (
44
"context"
55

66
"github.com/c4pt0r/tcli"
7-
"github.com/c4pt0r/tcli/utils"
8-
9-
"github.com/c4pt0r/tcli/client"
107
)
118

129
type ListPDCmd struct{}
@@ -25,20 +22,24 @@ func (c ListPDCmd) LongHelp() string {
2522

2623
func (c ListPDCmd) Handler() func(ctx context.Context) {
2724
return func(ctx context.Context) {
28-
utils.OutputWithElapse(func() error {
29-
pds, err := client.GetTiKVClient().GetPDClient().GetAllMembers(context.TODO())
30-
if err != nil {
31-
return err
32-
}
33-
34-
var output [][]string = [][]string{
35-
(client.PDInfo).TableTitle(client.PDInfo{}),
36-
}
37-
for _, pd := range pds {
38-
output = append(output, pd.Flatten())
39-
}
40-
utils.PrintTable(output)
41-
return nil
42-
})
25+
/*
26+
utils.OutputWithElapse(func() error {
27+
pds, err := client.GetTiKVClient().GetPDClient().GetAllMembers(context.TODO())
28+
if err != nil {
29+
return err
30+
}
31+
32+
var output [][]string = [][]string{
33+
(client.PDInfo).TableTitle(client.PDInfo{}),
34+
}
35+
for _, pd := range pds {
36+
//TODO
37+
panic("not implemented")
38+
//output = append(output, pd.Flatten())
39+
}
40+
utils.PrintTable(output)
41+
return nil
42+
})
43+
*/
4344
}
4445
}

0 commit comments

Comments
 (0)