mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: remove an obsolete TODO comment on 4MB maxMsgSize hard coding
The TODO comment was added by 7571b2cd, and it was addressed by d9b5b56c.
This commit is contained in:
parent
6c05a01ec6
commit
f602767e50
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user