DescriptionWatcher consistency improvements
* watcher fields that have no business being fields have been removed
* watcher stoppage has been consolidated
* handling of inappropriately closed watcher channels has been consolidated
* garbage watchers in cmd/jujud are now stopped explicitly
* significant code duplication removed from state/watcher.go
As a result of the final point, it has become apparent that most of the
watchers in the state package are at risk of emitting inappropriate events
that don't correspond to real changes. The fact that this is now apparent,
when it had previously been missed by every previous reviewer, is IMO a
strong indication that this change is a good move.
I haven't started to address that issue, however, because the CL is already
big enough.
https://code.launchpad.net/~fwereade/juju-core/consolidate-content-watchers/+merge/112350
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Watcher consistency improvements #Patch Set 3 : Watcher consistency improvements #Patch Set 4 : Watcher consistency improvements #
Total comments: 8
Patch Set 5 : Watcher consistency improvements #
MessagesTotal messages: 4
|