From: Roland Häder Date: Mon, 25 Feb 2013 09:10:06 +0000 (+0000) Subject: Remove index key (and maybe later more) as this doesn't need being distributed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=df7e85abb98cc30681e4ee1ccc03321b554f3112;p=hub.git Remove index key (and maybe later more) as this doesn't need being distributed --- diff --git a/application/hub/main/dht/node/class_NodeDhtFacade.php b/application/hub/main/dht/node/class_NodeDhtFacade.php index 9c00f7127..f78bca4e2 100644 --- a/application/hub/main/dht/node/class_NodeDhtFacade.php +++ b/application/hub/main/dht/node/class_NodeDhtFacade.php @@ -232,6 +232,11 @@ class NodeDhtFacade extends BaseDht implements Distributable, Registerable { // Debug message /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-FACADE[' . __LINE__ . ']: current(' . count($current) . ')[' . gettype($current) . ']=' . print_r($current, TRUE)); + /* + * Remove some keys as they should not be published. + */ + unset($current[$this->getWrapperInstance()->getIndexKey()]); + // Add this entry array_push($nodeList, $current); } // END - while