Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1008)

Issue 6248048: code review 6248048: net/rpc: improve response reading logic (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by snaury
Modified:
12 years, 9 months ago
Reviewers:
CC:
r, golang-dev
Visibility:
Public.

Description

net/rpc: improve response reading logic CL 5956051 introduced too many call != nil checks, so attempt to improve this by splitting logic into three distinct parts.

Patch Set 1 #

Patch Set 2 : diff -r 40632db23c46 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 40632db23c46 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r 40632db23c46 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 40632db23c46 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 40632db23c46 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -10 lines) Patch
M src/pkg/net/rpc/client.go View 1 2 3 4 5 1 chunk +18 lines, -10 lines 0 comments Download

Messages

Total messages: 10
snaury
Hello r@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2012-05-25 05:03:29 UTC) #1
r
http://codereview.appspot.com/6248048/diff/4001/src/pkg/net/rpc/client.go File src/pkg/net/rpc/client.go (right): http://codereview.appspot.com/6248048/diff/4001/src/pkg/net/rpc/client.go#newcode130 src/pkg/net/rpc/client.go:130: } else { not sure this is correct. if ...
12 years, 9 months ago (2012-05-26 17:17:26 UTC) #2
snaury
On 2012/05/26 17:17:26, r wrote: > src/pkg/net/rpc/client.go:130: } else { > not sure this is ...
12 years, 9 months ago (2012-05-26 18:57:00 UTC) #3
snaury
Hello r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2012-05-26 19:24:37 UTC) #4
r
LGTM this is much clearer. now we can remove the elses by using continue, or ...
12 years, 9 months ago (2012-05-26 19:56:05 UTC) #5
snaury
Hello r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2012-05-26 19:57:21 UTC) #6
snaury
On 2012/05/26 19:56:05, r wrote: > LGTM > this is much clearer. > now we ...
12 years, 9 months ago (2012-05-26 19:59:55 UTC) #7
snaury
Hello r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2012-05-26 20:03:38 UTC) #8
r
LGTM there's some duplication here, but splitting it up makes it harder to understand
12 years, 9 months ago (2012-05-26 21:17:55 UTC) #9
r
12 years, 9 months ago (2012-05-26 21:28:36 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=050271fb599f ***

net/rpc: improve response reading logic

CL 5956051 introduced too many call != nil checks, so
attempt to improve this by splitting logic into three
distinct parts.

R=r
CC=golang-dev
http://codereview.appspot.com/6248048

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b