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

Issue 8458044: state: factor out allWatcher

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by rog
Modified:
11 years ago
Reviewers:
mp+157656, dimitern, TheMue
Visibility:
Public.

Description

state: factor out allWatcher As suggested by dimiter. The functionality is more general than just watching everything, so names are changed accordingly. There are no significant logic changes in this branch. https://code.launchpad.net/~rogpeppe/juju-core/271-megawatcher-factor-out/+merge/157656 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: factor out allWatcher #

Total comments: 26

Patch Set 3 : state: factor out allWatcher #

Patch Set 4 : state: factor out allWatcher #

Total comments: 2

Patch Set 5 : state: factor out allWatcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1236 lines, -1139 lines) Patch
M .lbox.check View 1 1 chunk +1 line, -1 line 0 comments Download
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/params/params.go View 6 chunks +5 lines, -12 lines 0 comments Download
M state/api/params/params_test.go View 2 chunks +0 lines, -5 lines 0 comments Download
M state/apiserver/apiserver.go View 3 chunks +4 lines, -3 lines 0 comments Download
M state/megabacking.go View 1 2 3 8 chunks +35 lines, -21 lines 0 comments Download
M state/megawatcher_internal_test.go View 1 2 13 chunks +75 lines, -962 lines 0 comments Download
M state/multiwatcher/multiwatcher.go View 1 2 3 4 15 chunks +157 lines, -129 lines 0 comments Download
A state/multiwatcher/multiwatcher_internal_test.go View 1 2 1 chunk +950 lines, -0 lines 0 comments Download
M state/open.go View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M state/state.go View 1 2 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
11 years ago (2013-04-08 13:48:47 UTC) #1
rog
On 2013/04/08 13:48:47, rog wrote: > Please take a look. i also changed .lbox.check to ...
11 years ago (2013-04-08 13:52:01 UTC) #2
dimitern
Much nicer, thanks! LGTM, with a lot of suggestions, mostly typos. https://codereview.appspot.com/8458044/diff/2001/state/megabacking.go File state/megabacking.go (right): ...
11 years ago (2013-04-08 15:43:12 UTC) #3
rog
Please take a look. https://codereview.appspot.com/8458044/diff/2001/state/megabacking.go File state/megabacking.go (right): https://codereview.appspot.com/8458044/diff/2001/state/megabacking.go#newcode31 state/megabacking.go:31: // idOf returns the id ...
11 years ago (2013-04-09 07:41:16 UTC) #4
TheMue
LGTM, only one small comment. Also thinking about if it is worth defining exposed constants ...
11 years ago (2013-04-09 08:46:35 UTC) #5
rog
11 years ago (2013-04-09 09:45:18 UTC) #6
*** Submitted:

state: factor out allWatcher

As suggested by dimiter.
The functionality is more general than just watching everything,
so names are changed accordingly.

There are no significant logic changes in this branch.

R=dimitern, TheMue
CC=
https://codereview.appspot.com/8458044

https://codereview.appspot.com/8458044/diff/22001/state/multiwatcher/multiwat...
File state/multiwatcher/multiwatcher.go (right):

https://codereview.appspot.com/8458044/diff/22001/state/multiwatcher/multiwat...
state/multiwatcher/multiwatcher.go:150: s := newStoreManagerNoRun(backing)
On 2013/04/09 08:46:35, TheMue wrote:
> Nothing important, but you name the StorageManager sm in the method
declaration.
> I would prefer it here too.

Done.
Sign in to reply to this message.

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