From: Roland Häder Date: Mon, 21 Nov 2011 20:25:01 +0000 (+0000) Subject: Debug line added, inline comment improved X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2ab36c5181304d0d0c17755f546cb625df4f172f;p=hub.git Debug line added, inline comment improved --- diff --git a/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php b/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php index 7ddff1fb6..4a687ddbc 100644 --- a/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php +++ b/application/hub/main/discovery/package/class_PackageRecipientDiscovery.php @@ -64,6 +64,9 @@ class PackageRecipientDiscovery extends BaseHubDiscovery implements Discoverable case NetworkPackage::NETWORK_TARGET_UPPER_HUBS: // Get all bootstrap nodes foreach (explode(BaseHubSystem::BOOTSTRAP_NODES_SEPERATOR, $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $node) { + // Debug message + /* DEBUG: */ $this->debugOutput('DISCOVERY: Adding node ' . $node . ' as recipient.'); + // Add the entry $listInstance->addEntry('ip_port', $node); } // END - foreach diff --git a/application/hub/main/package/class_NetworkPackage.php b/application/hub/main/package/class_NetworkPackage.php index 5f5aeb880..6d1be1ecb 100644 --- a/application/hub/main/package/class_NetworkPackage.php +++ b/application/hub/main/package/class_NetworkPackage.php @@ -267,7 +267,10 @@ class NetworkPackage extends BaseFrameworkSystem implements Deliverable, Receiva $iteratorInstance->next(); } // END - while - // Clean-up the list + /* + * The recipient list can be cleaned up here because the package which + * shall be delivered has been added for all entries from the list. + */ $discoveryInstance->clearRecipients(); }