Refactor RPC to be more general

This commit is contained in:
Jae Kwon
2016-01-02 16:23:29 -08:00
parent 6132017f82
commit 74cdadec9f
8 changed files with 224 additions and 143 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import (
. "github.com/tendermint/go-common"
"github.com/tendermint/go-wire"
"github.com/tendermint/tendermint/rpc/client"
// ctypes "github.com/tendermint/tendermint/rpc/core/types"
_ "github.com/tendermint/tendermint/rpc/core/types" // Register RPCResponse > Result types
"github.com/tendermint/tendermint/rpc/types"
)
@@ -49,7 +49,7 @@ func main() {
if i%1000 == 0 {
fmt.Println(i)
}
time.Sleep(time.Microsecond * 250)
time.Sleep(time.Microsecond * 1000)
}
ws.Stop()