]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/handler/message-types/dht/class_NodeMessageDhtBootstrapHandler.php
Removed getNodeInstance() and setNodeInstance(). Please now use the following
[hub.git] / application / hub / main / handler / message-types / dht / class_NodeMessageDhtBootstrapHandler.php
index 35b609e4ca4cee602916e74e6e398541c06e8859..0bf5c5964af5cad680798d461747586668834ea2 100644 (file)
@@ -73,12 +73,6 @@ class NodeMessageDhtBootstrapHandler extends BaseMessageHandler implements Handl
                // Get new instance
                $handlerInstance = new NodeMessageDhtBootstrapHandler();
 
-               // Get node instance
-               $nodeInstance = NodeObjectFactory::createNodeInstance();
-
-               // ... and set it here
-               $handlerInstance->setNodeInstance($nodeInstance);
-
                // Get a DHT instance
                $dhtInstance = DhtObjectFactory::createDhtInstance('node');
 
@@ -99,7 +93,7 @@ class NodeMessageDhtBootstrapHandler extends BaseMessageHandler implements Handl
         */
        public function handleMessageData (array $messageData, Receivable $packageInstance) {
                // Is this node accepting DHT bootstrap requests?
-               if (!$this->getNodeInstance()->isAcceptingDhtBootstrap()) {
+               if (!NodeObjectFactory::createNodeInstance()->isAcceptingDhtBootstrap()) {
                        /*
                         * This node is not accepting DHT bootstrap requests.
                         */