mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-03-15 12:20:40 +08:00
Currently, the only usage of `entsWithConfig` and `votedWithConfig` is in TestLeaderElectionOverwriteNewerLogs2AB. This test case emulates a five-peer network and spawns each peer either by `entsWithConfig` or `votedWithConfig`. However, neither of them specifies an id parameter and as a result the five peers all have the same id `1`. This makes debugging and logging a little bit of creepy. So it'd better to add an id parameter both to `entsWithConfig` and `votedWithConfig`, and modify their usage accordingly. |
||
---|---|---|
.. | ||
doc.go | ||
log.go | ||
raft_paper_test.go | ||
raft_test.go | ||
raft.go | ||
rawnode_test.go | ||
rawnode.go | ||
storage.go | ||
util.go |