Merge branch 'master' into service_config_pr

This commit is contained in:
Yuxuan Li
2017-04-06 14:12:34 -07:00
12 changed files with 82 additions and 102 deletions

View File

@ -262,7 +262,7 @@ func invoke(ctx context.Context, method string, args, reply interface{}, cc *Cli
t, put, err = cc.getTransport(ctx, gopts)
if err != nil {
// TODO(zhaoq): Probably revisit the error handling.
if _, ok := err.(status.Status); ok {
if _, ok := status.FromError(err); ok {
return err
}
if err == errConnClosing || err == errConnUnavailable {