Browse Source

Fix tmsp-cli to conform to go-wire new TypeByte behavior; Rename tmsp_cli to tmsp-cli

pull/1780/head
Jae Kwon 9 years ago
parent
commit
844c4a519d
2 changed files with 9 additions and 5 deletions
  1. +8
    -3
      cmd/tmsp-cli/tmsp-cli.go
  2. +1
    -2
      example/golang/dummy_test.go

cmd/tmsp_cli/tmsp_cli.go → cmd/tmsp-cli/tmsp-cli.go View File


+ 1
- 2
example/golang/dummy_test.go View File

@ -35,8 +35,7 @@ func TestStream(t *testing.T) {
var n int
var err error
var res types.Response
wire.ReadVarint(conn, &n, &err) // ignore
wire.ReadBinaryPtr(&res, conn, 0, &n, &err)
wire.ReadBinaryPtrLengthPrefixed(&res, conn, 0, &n, &err)
if err != nil {
Exit(err.Error())
}


Loading…
Cancel
Save