mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 07:30:35 +08:00
Raft implementation fix
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ private:
|
||||
|
||||
void addServer(NodeID node_id)
|
||||
{
|
||||
UAVCAN_ASSERT((num_known_servers_ + 1) < (MaxClusterSize - 2));
|
||||
UAVCAN_ASSERT((num_known_servers_ + 1) < MaxClusterSize);
|
||||
if (!isKnownServer(node_id) && node_id.isUnicast())
|
||||
{
|
||||
tracer_.onEvent(TraceRaftNewServerDiscovered, node_id.get());
|
||||
|
||||
Reference in New Issue
Block a user