Browse Source

Merge pull request #3606 from kkaneda/kkaneda/tiny_fix

raft: remove an obsolete TODO comment on 4MB maxMsgSize hard coding
Xiang Li 10 years ago
parent
commit
783884a04e
1 changed files with 3 additions and 6 deletions
  1. 3 6
      raft/raft.go

+ 3 - 6
raft/raft.go

@@ -185,12 +185,9 @@ func newRaft(c *Config) *raft {
 		peers = cs.Nodes
 	}
 	r := &raft{
-		id:      c.ID,
-		lead:    None,
-		raftLog: raftlog,
-		// 4MB for now and hard code it
-		// TODO(xiang): add a config argument into newRaft after we add
-		// the max inflight message field.
+		id:               c.ID,
+		lead:             None,
+		raftLog:          raftlog,
 		maxMsgSize:       c.MaxSizePerMsg,
 		maxInflight:      c.MaxInflightMsgs,
 		prs:              make(map[uint64]*Progress),