persistent dummy

This commit is contained in:
Ethan Buchman
2016-08-24 01:42:57 -04:00
parent debbf122db
commit 7901825ad9
5 changed files with 138 additions and 3 deletions

View File

@ -265,10 +265,10 @@ func (cli *grpcClient) FlushSync() error {
func (cli *grpcClient) InfoSync() (types.Result, *types.TMSPInfo, *types.LastBlockInfo, *types.ConfigInfo) {
reqres := cli.InfoAsync()
if res := cli.checkErrGetResult(); res.IsErr() {
return res
return res, nil, nil, nil
}
resp := reqres.Response.GetInfo()
return types.NewResultOK([]byte(resp.Info), LOG), r.TmspInfo, r.LastBlock, r.Config
return types.NewResultOK([]byte(resp.Info), LOG), resp.TmspInfo, resp.LastBlock, resp.Config
}
func (cli *grpcClient) SetOptionSync(key string, value string) (res types.Result) {