Browse Source

Moved httpclient into subpackage

pull/418/head
Ethan Frey 8 years ago
parent
commit
bf1ee89b27
5 changed files with 18 additions and 18 deletions
  1. +1
    -1
      rpc/client/http/app_test.go
  2. +1
    -1
      rpc/client/http/client.go
  3. +1
    -1
      rpc/client/http/main_test.go
  4. +15
    -8
      rpc/client/http/rpc_test.go
  5. +0
    -7
      rpc/test/helpers.go

rpc/client/app_test.go → rpc/client/http/app_test.go View File


rpc/client/client.go → rpc/client/http/client.go View File


rpc/client/main_test.go → rpc/client/http/main_test.go View File


rpc/client/rpc_test.go → rpc/client/http/rpc_test.go View File


+ 0
- 7
rpc/test/helpers.go View File

@ -15,7 +15,6 @@ import (
"github.com/tendermint/tendermint/config/tendermint_test"
nm "github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/proxy"
rpcclient "github.com/tendermint/tendermint/rpc/client"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
core_grpc "github.com/tendermint/tendermint/rpc/grpc"
"github.com/tendermint/tendermint/types"
@ -38,12 +37,6 @@ func GetConfig() cfg.Config {
return config
}
// GetClient gets a rpc client pointing to the test tendermint rpc
func GetClient() *rpcclient.HTTPClient {
rpcAddr := GetConfig().GetString("rpc_laddr")
return rpcclient.New(rpcAddr, "/websocket")
}
// GetURIClient gets a uri client pointing to the test tendermint rpc
func GetURIClient() *client.ClientURI {
rpcAddr := GetConfig().GetString("rpc_laddr")


Loading…
Cancel
Save