From f602767e50661d665e9c5d965a67699bc4801326 Mon Sep 17 00:00:00 2001 From: Kenji Kaneda Date: Mon, 28 Sep 2015 21:31:12 -0700 Subject: [PATCH] raft: remove an obsolete TODO comment on 4MB maxMsgSize hard coding The TODO comment was added by 7571b2cd, and it was addressed by d9b5b56c. --- raft/raft.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/raft/raft.go b/raft/raft.go index 59e4b418f..f8acde49c 100644 --- a/raft/raft.go +++ b/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),