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

Issue 81330044: instance: make NewAddresses take a vararg

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by dave
Modified:
11 years, 3 months ago
Reviewers:
mp+213208, rog
Visibility:
Public.

Description

instance: make NewAddresses take a vararg NewAddresses is almost exclusively used in tests, and almost exclusively called with one argument. Making NewAddresses use the vararg form makes the callers of the function easier to read and exposes that most callers would use the singular NewAddress form except they usually pass their return value to SetAddresses which itself is not varargs. Fixing SetAddresses will be the next change. https://code.launchpad.net/~dave-cheney/juju-core/107-new-addresses-take-varargs/+merge/213208 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -11 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M instance/address.go View 1 chunk +1 line, -1 line 0 comments Download
M instance/address_test.go View 2 chunks +2 lines, -3 lines 0 comments Download
M state/api/deployer/deployer_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/api/machiner/machiner_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/api/provisioner/provisioner_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/megawatcher_internal_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/instancepoller/aggregate_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/peergrouper/mock_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/peergrouper/worker_test.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2
dave_cheney.net
Please take a look.
11 years, 3 months ago (2014-03-28 07:32:07 UTC) #1
rog
11 years, 3 months ago (2014-03-28 07:58:40 UTC) #2
On 2014/03/28 07:32:07, dfc wrote:
> Please take a look.

LGTM++
Sign in to reply to this message.

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