From a9ceeef003c251bc1ca15a94d9278ace23f3f23f Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 18 Mar 2014 23:58:49 +0100 Subject: [PATCH] Renamed method to make it more clear. Signed-off-by: Roland Haeder --- application/hub/main/dht/node/class_NodeDhtFacade.php | 2 +- .../hub/main/states/dht/virgin/class_DhtVirginState.php | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/application/hub/main/dht/node/class_NodeDhtFacade.php b/application/hub/main/dht/node/class_NodeDhtFacade.php index a3d1524b8..bcd7a2296 100644 --- a/application/hub/main/dht/node/class_NodeDhtFacade.php +++ b/application/hub/main/dht/node/class_NodeDhtFacade.php @@ -118,7 +118,7 @@ class NodeDhtFacade extends BaseDht implements DistributableNode, Registerable { $helperInstance->sendPackage($this); // Change state - $this->getStateInstance()->dhtHasBooted(); + $this->getStateInstance()->dhtIsBooting(); } /** diff --git a/application/hub/main/states/dht/virgin/class_DhtVirginState.php b/application/hub/main/states/dht/virgin/class_DhtVirginState.php index 9f0a1a271..838bc570d 100644 --- a/application/hub/main/states/dht/virgin/class_DhtVirginState.php +++ b/application/hub/main/states/dht/virgin/class_DhtVirginState.php @@ -59,13 +59,12 @@ class DhtVirginState extends BaseDhtState implements Stateable { } /** - * Called when the DHT has booted. This means that the bootstrap message - * has been sent out to other nodes. This will changed the DHT's state - * to 'booting'. + * Called when the DHT is booting. This means that the bootstrap message + * has been queued. * * @return void */ - public function dhtHasBooted () { + public function dhtIsBooting () { // Get new instance and set it DhtStateFactory::createDhtStateInstanceByName('booting', $this->getDhtInstance()); } -- 2.39.5