Showing the changes to libraries/networking/src/ThreadedAssignment.cpp (1 of 3 files). Show all
Unified · Split
| @@ -134,7 +134,7 @@ void ThreadedAssignment::domainSettingsRequestFailed() { · 133 unmodified lines | ||
| 134 | 134 | setFinished(true); |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | −void ThreadedAssignment::parseDownstreamServers(const QJsonObject& settingsObject, NodeType_t nodeType) { | |
| 137 | +void ThreadedAssignment::parseDownstreamServers(const QJsonObject& settingsObject, NodeType_t nodeType, DownstreamNodeFoundCallback callback) { | |
| 138 | 138 | static const QString REPLICATION_GROUP_KEY = "replication"; |
| 139 | 139 | static const QString DOWNSTREAM_SERVERS_SETTING_KEY = "downstream_servers"; |
| 140 | 140 | if (settingsObject.contains(REPLICATION_GROUP_KEY)) { |
| @@ -161,8 +161,9 @@ void ThreadedAssignment::parseDownstreamServers(const QJsonObject& settingsObjec · 20 unmodified lines | ||
| 161 | 161 | }; |
| 162 | 162 | |
| 163 | 163 | // manually add the downstream node to our node list |
| 164 | − nodeList->addOrUpdateNode(QUuid::createUuid(), NodeType::downstreamType(nodeType), | |
| 165 | − downstreamServerAddr, downstreamServerAddr); | |
| 164 | + auto node = nodeList->addOrUpdateNode(QUuid::createUuid(), NodeType::downstreamType(nodeType), | |
| 165 | + downstreamServerAddr, downstreamServerAddr); | |
| 166 | + callback(*node); | |
| 166 | 167 | } |
| 167 | 168 | } |
| 168 | 169 | } |