mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 05:11:21 +00:00
rename MsgAndTags to Message
This commit is contained in:
@ -109,8 +109,8 @@ func Subscribe(wsCtx rpctypes.WSRPCContext, query string) (*ctypes.ResultSubscri
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case mt := <-sub.Out():
|
||||
resultEvent := &ctypes.ResultEvent{query, mt.Msg().(tmtypes.TMEventData)}
|
||||
case msg := <-sub.Out():
|
||||
resultEvent := &ctypes.ResultEvent{query, msg.Data().(tmtypes.TMEventData)}
|
||||
wsCtx.TryWriteRPCResponse(
|
||||
rpctypes.NewRPCSuccessResponse(
|
||||
wsCtx.Codec(),
|
||||
|
@ -201,8 +201,8 @@ func BroadcastTxCommit(tx types.Tx) (*ctypes.ResultBroadcastTxCommit, error) {
|
||||
// TODO: configurable?
|
||||
var deliverTxTimeout = rpcserver.WriteTimeout / 2
|
||||
select {
|
||||
case mt := <-deliverTxSub.Out(): // The tx was included in a block.
|
||||
deliverTxRes := mt.Msg().(types.EventDataTx)
|
||||
case msg := <-deliverTxSub.Out(): // The tx was included in a block.
|
||||
deliverTxRes := msg.Data().(types.EventDataTx)
|
||||
return &ctypes.ResultBroadcastTxCommit{
|
||||
CheckTx: *checkTxRes,
|
||||
DeliverTx: deliverTxRes.Result,
|
||||
|
Reference in New Issue
Block a user