minor things
This commit is contained in:
parent
e9094fbee3
commit
5a46675185
|
@ -4,8 +4,9 @@
|
||||||
|
|
||||||
BREAKING CHANGES:
|
BREAKING CHANGES:
|
||||||
- [client] all XxxSync methods now return (ResponseXxx, error)
|
- [client] all XxxSync methods now return (ResponseXxx, error)
|
||||||
- [types] Application: all methods take RequestXxx and return (ResponseXxx, error),
|
- [types] Application: all methods now take RequestXxx and return (ResponseXxx, error).
|
||||||
except CheckTx/DeliverTx, which take `tx []byte`, and `Commit`, which takes nothing.
|
- Except `CheckTx`/`DeliverTx`, which takes a `tx []byte` argument.
|
||||||
|
- Except `Commit`, which takes no arguments.
|
||||||
- [types] removed Result
|
- [types] removed Result
|
||||||
|
|
||||||
FEATURES:
|
FEATURES:
|
||||||
|
|
|
@ -14,11 +14,6 @@ import (
|
||||||
cmn "github.com/tendermint/tmlibs/common"
|
cmn "github.com/tendermint/tmlibs/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
OK = types.CodeType_OK
|
|
||||||
LOG = ""
|
|
||||||
)
|
|
||||||
|
|
||||||
const reqQueueSize = 256 // TODO make configurable
|
const reqQueueSize = 256 // TODO make configurable
|
||||||
// const maxResponseSize = 1048576 // 1MB TODO make configurable
|
// const maxResponseSize = 1048576 // 1MB TODO make configurable
|
||||||
const flushThrottleMS = 20 // Don't wait longer than...
|
const flushThrottleMS = 20 // Don't wait longer than...
|
||||||
|
@ -251,8 +246,8 @@ func (cli *socketClient) CheckTxAsync(tx []byte) *ReqRes {
|
||||||
return cli.queueRequest(types.ToRequestCheckTx(tx))
|
return cli.queueRequest(types.ToRequestCheckTx(tx))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *socketClient) QueryAsync(reqQuery types.RequestQuery) *ReqRes {
|
func (cli *socketClient) QueryAsync(req types.RequestQuery) *ReqRes {
|
||||||
return cli.queueRequest(types.ToRequestQuery(reqQuery))
|
return cli.queueRequest(types.ToRequestQuery(req))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *socketClient) CommitAsync() *ReqRes {
|
func (cli *socketClient) CommitAsync() *ReqRes {
|
||||||
|
|
Loading…
Reference in New Issue