]> git.mxchange.org Git - hub.git/commitdiff
Debug line added, inline comment improved
authorRoland Häder <roland@mxchange.org>
Mon, 21 Nov 2011 20:25:01 +0000 (20:25 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 21 Nov 2011 20:25:01 +0000 (20:25 +0000)
application/hub/main/discovery/package/class_PackageRecipientDiscovery.php
application/hub/main/package/class_NetworkPackage.php

index 7ddff1fb664129fa0b9588dbb93d09e332f414a6..4a687ddbc77b2abf558d0491eb17e15aa41d3769 100644 (file)
@@ -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
index 5f5aeb8808109cc42bf388b1a7f6f46676713d0e..6d1be1ecb70f1795522d927b5ace7f0ad79feee0 100644 (file)
@@ -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();
        }