mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 06:03:34 +08:00
Dynamic node ID servers - configurable priority
This commit is contained in:
+1
-2
@@ -258,12 +258,11 @@ public:
|
||||
/*
|
||||
* Initializing pub/sub and timer
|
||||
*/
|
||||
int res = discovery_pub_.init();
|
||||
int res = discovery_pub_.init(priority);
|
||||
if (res < 0)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
discovery_pub_.setPriority(priority);
|
||||
|
||||
res = discovery_sub_.start(DiscoveryCallback(this, &ClusterManager::handleDiscovery));
|
||||
if (res < 0)
|
||||
|
||||
@@ -766,7 +766,7 @@ public:
|
||||
return res;
|
||||
}
|
||||
|
||||
res = append_entries_client_.init();
|
||||
res = append_entries_client_.init(priority);
|
||||
if (res < 0)
|
||||
{
|
||||
return res;
|
||||
@@ -774,7 +774,7 @@ public:
|
||||
append_entries_client_.setCallback(AppendEntriesResponseCallback(this,
|
||||
&RaftCore::handleAppendEntriesResponse));
|
||||
|
||||
res = request_vote_client_.init();
|
||||
res = request_vote_client_.init(priority);
|
||||
if (res < 0)
|
||||
{
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user