mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
minor fix
This commit is contained in:
parent
7dc5b746ac
commit
e08885e3cd
@ -45,46 +45,46 @@ func (app *GRPCApplication) Flush(ctx context.Context, req *RequestFlush) (*Resp
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (app *GRPCApplication) Info(ctx context.Context, req *RequestInfo) (*ResponseInfo, error) {
|
func (app *GRPCApplication) Info(ctx context.Context, req *RequestInfo) (*ResponseInfo, error) {
|
||||||
resInfo := app.app.Info(*req)
|
res := app.app.Info(*req)
|
||||||
return &resInfo, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *GRPCApplication) SetOption(ctx context.Context, req *RequestSetOption) (*ResponseSetOption, error) {
|
func (app *GRPCApplication) SetOption(ctx context.Context, req *RequestSetOption) (*ResponseSetOption, error) {
|
||||||
resSetOption := app.app.SetOption(*req)
|
res := app.app.SetOption(*req)
|
||||||
return &resSetOption, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *GRPCApplication) DeliverTx(ctx context.Context, req *RequestDeliverTx) (*ResponseDeliverTx, error) {
|
func (app *GRPCApplication) DeliverTx(ctx context.Context, req *RequestDeliverTx) (*ResponseDeliverTx, error) {
|
||||||
r := app.app.DeliverTx(req.Tx)
|
res := app.app.DeliverTx(req.Tx)
|
||||||
return &ResponseDeliverTx{r.Code, r.Data, r.Log, r.Tags}, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *GRPCApplication) CheckTx(ctx context.Context, req *RequestCheckTx) (*ResponseCheckTx, error) {
|
func (app *GRPCApplication) CheckTx(ctx context.Context, req *RequestCheckTx) (*ResponseCheckTx, error) {
|
||||||
r := app.app.CheckTx(req.Tx)
|
res := app.app.CheckTx(req.Tx)
|
||||||
return &ResponseCheckTx{r.Code, r.Data, r.Log}, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *GRPCApplication) Query(ctx context.Context, req *RequestQuery) (*ResponseQuery, error) {
|
func (app *GRPCApplication) Query(ctx context.Context, req *RequestQuery) (*ResponseQuery, error) {
|
||||||
resQuery := app.app.Query(*req)
|
res := app.app.Query(*req)
|
||||||
return &resQuery, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *GRPCApplication) Commit(ctx context.Context, req *RequestCommit) (*ResponseCommit, error) {
|
func (app *GRPCApplication) Commit(ctx context.Context, req *RequestCommit) (*ResponseCommit, error) {
|
||||||
r := app.app.Commit()
|
res := app.app.Commit()
|
||||||
return &ResponseCommit{r.Code, r.Data, r.Log}, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *GRPCApplication) InitChain(ctx context.Context, req *RequestInitChain) (*ResponseInitChain, error) {
|
func (app *GRPCApplication) InitChain(ctx context.Context, req *RequestInitChain) (*ResponseInitChain, error) {
|
||||||
resInitChain := app.app.InitChain(*req)
|
res := app.app.InitChain(*req)
|
||||||
return &resInitChain, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *GRPCApplication) BeginBlock(ctx context.Context, req *RequestBeginBlock) (*ResponseBeginBlock, error) {
|
func (app *GRPCApplication) BeginBlock(ctx context.Context, req *RequestBeginBlock) (*ResponseBeginBlock, error) {
|
||||||
resBeginBlock := app.app.BeginBlock(*req)
|
res := app.app.BeginBlock(*req)
|
||||||
return &resBeginBlock, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *GRPCApplication) EndBlock(ctx context.Context, req *RequestEndBlock) (*ResponseEndBlock, error) {
|
func (app *GRPCApplication) EndBlock(ctx context.Context, req *RequestEndBlock) (*ResponseEndBlock, error) {
|
||||||
resEndBlock := app.app.EndBlock(*req)
|
res := app.app.EndBlock(*req)
|
||||||
return &resEndBlock, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user