*: clean up code format

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee
2018-07-21 15:49:33 -07:00
parent 6ab3cc0a2e
commit 42bef8460c
7 changed files with 22 additions and 25 deletions

View File

@@ -393,7 +393,7 @@ func (rc *raftNode) serveChannels() {
// send proposals over raft
go func() {
var confChangeCount uint64 = 0
confChangeCount := uint64(0)
for rc.proposeC != nil && rc.confChangeC != nil {
select {
@@ -409,7 +409,7 @@ func (rc *raftNode) serveChannels() {
if !ok {
rc.confChangeC = nil
} else {
confChangeCount += 1
confChangeCount++
cc.ID = confChangeCount
rc.node.ProposeConfChange(context.TODO(), cc)
}