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

Issue 7359044: state: don't panic on dial failure

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

Description

state: don't panic on dial failure https://code.launchpad.net/~rogpeppe/juju-core/226-fix-dial-panic/+merge/149321 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: don't panic on dial failure #

Total comments: 3

Patch Set 3 : state: don't panic on dial failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/export_test.go View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M state/open.go View 2 chunks +6 lines, -1 line 0 comments Download
M state/state_test.go View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
11 years, 2 months ago (2013-02-19 16:01:55 UTC) #1
dimitern
LGTM, good catch!
11 years, 2 months ago (2013-02-19 16:37:02 UTC) #2
dave_cheney.net
On 2013/02/19 16:37:02, dimitern wrote: > LGTM, good catch! LGTM, thank you
11 years, 2 months ago (2013-02-19 22:35:26 UTC) #3
jameinel
LGTM https://codereview.appspot.com/7359044/diff/2001/state/export_test.go File state/export_test.go (right): https://codereview.appspot.com/7359044/diff/2001/state/export_test.go#newcode18 state/export_test.go:18: var oldDialTimeout = dialTimeout I would call this ...
11 years, 2 months ago (2013-02-20 05:46:39 UTC) #4
rog
11 years, 2 months ago (2013-02-20 09:38:55 UTC) #5
*** Submitted:

state: don't panic on dial failure

R=dimitern, dfc, jameinel
CC=
https://codereview.appspot.com/7359044

https://codereview.appspot.com/7359044/diff/2001/state/export_test.go
File state/export_test.go (right):

https://codereview.appspot.com/7359044/diff/2001/state/export_test.go#newcode18
state/export_test.go:18: var oldDialTimeout = dialTimeout
On 2013/02/20 05:46:40, jameinel wrote:
> I would call this "defaultDialTimeout".
> 
> Old would indicate the timeout-used-before-I-just-set-it, but nothing but this
> line sets "oldDialTimeout".
> Calling it default makes it clearer that passing 0 just reverts it to the
> default.

Done.
Sign in to reply to this message.

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