Skip to content
This repository has been archived by the owner on Jul 15, 2018. It is now read-only.

Disconnect #27

Merged
merged 5 commits into from
Aug 23, 2016
Merged

Disconnect #27

merged 5 commits into from
Aug 23, 2016

Conversation

ebuchman
Copy link
Contributor

@ebuchman ebuchman mentioned this pull request Aug 16, 2016
@@ -217,87 +240,115 @@ func (cli *grpcClient) finishAsyncCall(req *types.Request, res *types.Response)
return reqres
}

func (cli *grpcClient) checkErrGetResult() *types.Result {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just return types.Result directly, and check for res.IsOK() or res.IsErr(), just because pointers here are probably more expensive than the small types.Result structure.

And we can also do return types.ErrInternalError.SetLog(errorLog).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right

@jaekwon
Copy link
Contributor

jaekwon commented Aug 23, 2016

looks good to me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants