Descriptionstate: add dialTimeout parameter to state.Open
Updates LP#1084867
Remove the package level dialTimeout and replace it with a parameter passed to state.Open and state.Initalise.
This is part 1 of 3 changes addressing jam's comments from https://codereview.appspot.com/7528047/#msg2. As jam suspected, we were not using the SetDialTimeout helper consistently, nor was it even available outside the state package. To resolve this the helper has been removed and replaced by an explicit value passed to state.Open and state.Initalise.
The next proposal will build on this to pass a retryDelay value as originally proposed in https://codereview.appspot.com/7528047.
The last proposal will address the heavy duplication of calls to state.Open/Initalise as a cleanup before reapplying https://codereview.appspot.com/7528047.
https://code.launchpad.net/~dave-cheney/juju-core/107a-increase-timeout-delay/+merge/154583
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : state: add dialTimeout parameter to state.Open #
Total comments: 2
Patch Set 3 : state: add dialTimeout parameter to state.Open #Patch Set 4 : state: add dialTimeout parameter to state.Open #
Total comments: 2
Patch Set 5 : state: add dialTimeout parameter to state.Open #
MessagesTotal messages: 4
|