()
| 229 | } |
| 230 | |
| 231 | func (cli *grpcClient) CommitAsync() *ReqRes { |
| 232 | req := types.ToRequestCommit() |
| 233 | res, err := cli.client.Commit(context.Background(), req.GetCommit(), grpc.WaitForReady(true)) |
| 234 | if err != nil { |
| 235 | cli.StopForError(err) |
| 236 | } |
| 237 | return cli.finishAsyncCall(req, &types.Response{Value: &types.Response_Commit{Commit: res}}) |
| 238 | } |
| 239 | |
| 240 | func (cli *grpcClient) InitChainAsync(params types.RequestInitChain) *ReqRes { |
| 241 | req := types.ToRequestInitChain(params) |
no test coverage detected