Module jopemachine_raft::util
source · Expand description
This module contains a collection of various tools to use to manipulate and control messages and data associated with raft.
Structs§
- A convenient struct that handles queries to both HashSet.
Constants§
- A number to represent that there is no limit.
Functions§
- Get the approximate size of entry
- Check whether the entry is continuous to the message. i.e msg’s next entry index should be equal to the index of the first entry in
ents
- Truncates the list of entries down to a specific byte-length of all entries together.
- Get the majority number of given nodes count.