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

Issue 6243067: Add State method to juju.Conn

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by fwereade
Modified:
11 years, 11 months ago
Reviewers:
mp+107806
Visibility:
Public.

Description

Add State method to juju.Conn https://code.launchpad.net/~fwereade/juju/go-conn-state/+merge/107806 Requires: https://code.launchpad.net/~fwereade/juju/go-dummy-environ-state/+merge/107795 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add State method to juju.Conn #

Patch Set 3 : Add State method to juju.Conn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -10 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M juju/conn.go View 1 2 4 chunks +23 lines, -2 lines 0 comments Download
M juju/conn_test.go View 2 chunks +26 lines, -8 lines 0 comments Download

Messages

Total messages: 7
fwereade
Please take a look.
11 years, 11 months ago (2012-05-29 15:15:31 UTC) #1
rog
LGTM modulo the thought below. https://codereview.appspot.com/6243067/diff/1/juju/conn.go File juju/conn.go (right): https://codereview.appspot.com/6243067/diff/1/juju/conn.go#newcode47 juju/conn.go:47: if c.state == nil ...
11 years, 11 months ago (2012-05-29 15:39:50 UTC) #2
niemeyer
LGTM too https://codereview.appspot.com/6243067/diff/1/juju/conn.go File juju/conn.go (right): https://codereview.appspot.com/6243067/diff/1/juju/conn.go#newcode47 juju/conn.go:47: if c.state == nil { On 2012/05/29 ...
11 years, 11 months ago (2012-05-29 18:10:39 UTC) #3
fwereade
Please take a look.
11 years, 11 months ago (2012-05-30 10:31:52 UTC) #4
niemeyer
On 2012/05/30 10:31:52, fwereade wrote: > Please take a look. Nothing has changed..?
11 years, 11 months ago (2012-05-30 10:46:54 UTC) #5
fwereade
On 2012/05/30 10:46:54, niemeyer wrote: > On 2012/05/30 10:31:52, fwereade wrote: > > Please take ...
11 years, 11 months ago (2012-05-30 11:07:23 UTC) #6
fwereade
11 years, 11 months ago (2012-05-31 07:45:38 UTC) #7
*** Submitted:

Add State method to juju.Conn

R=rog, niemeyer
CC=
https://codereview.appspot.com/6243067

https://codereview.appspot.com/6243067/diff/1/juju/conn.go
File juju/conn.go (right):

https://codereview.appspot.com/6243067/diff/1/juju/conn.go#newcode47
juju/conn.go:47: if c.state == nil {
On 2012/05/29 18:10:39, niemeyer wrote:
> On 2012/05/29 15:39:50, rog wrote:
> > guard with a mutex?
> > we take care to make Environ thread-safe, so Conn should probably be safe
too.
> 
> +1

Done.
Sign in to reply to this message.

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