removing unused code
parent
5bd53e5450
commit
3205d8e182
|
@ -839,7 +839,6 @@ func (l *Log) stateLoop(closing <-chan struct{}, state State, stateChanged chan
|
||||||
|
|
||||||
for {
|
for {
|
||||||
// Transition to new state.
|
// Transition to new state.
|
||||||
var transitioning chan struct{}
|
|
||||||
func() {
|
func() {
|
||||||
l.lock()
|
l.lock()
|
||||||
defer l.unlock()
|
defer l.unlock()
|
||||||
|
@ -847,7 +846,6 @@ func (l *Log) stateLoop(closing <-chan struct{}, state State, stateChanged chan
|
||||||
l.tracef("log state change: %s => %s (term=%d)", l.state, state, l.term)
|
l.tracef("log state change: %s => %s (term=%d)", l.state, state, l.term)
|
||||||
l.state = state
|
l.state = state
|
||||||
l.transitioning = make(chan struct{}, 0)
|
l.transitioning = make(chan struct{}, 0)
|
||||||
transitioning = l.transitioning
|
|
||||||
|
|
||||||
// Remove previous reader, if one exists.
|
// Remove previous reader, if one exists.
|
||||||
_ = l.setReader(nil)
|
_ = l.setReader(nil)
|
||||||
|
|
Loading…
Reference in New Issue