longganhua
2019-07-18 c610f5adea868e6d46ac63a2b9ffeff2c24225fc
fix query
1个文件已删除
1个文件已修改
14 ■■■■■ 已修改文件
10M.jpg 补丁 | 查看 | 原始文档 | blame | 历史
command/query.go 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
10M.jpg
Binary files differ
command/query.go
@@ -6,8 +6,6 @@
    "strings"
    "time"
    "io/ioutil"
    "github.com/hashicorp/serf/client"
    "github.com/hashicorp/serf/cmd/serf/command/agent"
    "github.com/mitchellh/cli"
@@ -106,18 +104,6 @@
    if len(args) == 2 {
        payload = []byte(args[1])
    }
    //file to []byte
    buf, err := ioutil.ReadFile("10M.jpg")
    if err != nil {
        c.Ui.Error(fmt.Sprintf("Error: %s", err))
        return 1
    }
    _ = buf
    //payload = buf
    fmt.Println("len(payload): ", len(payload))
    cl, err := RPCClient(*rpcAddr, *rpcAuth)
    if err != nil {