mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 12:17:48 +08:00
Fixed typo.
This commit is contained in:
parent
134cfaa383
commit
1bcd444b22
@ -72,12 +72,12 @@ abstract class AbstractLoadBalancer implements LoadBalancerInterface
|
||||
break;
|
||||
}
|
||||
|
||||
$origin = $this->getNodes();
|
||||
$beforeNodes = $this->getNodes();
|
||||
$nodes = call($callback);
|
||||
if (is_array($nodes)) {
|
||||
$this->setNodes($nodes);
|
||||
foreach ($this->afterRefreshCallbacks as $refreshCallback) {
|
||||
! is_null($refreshCallback) && $refreshCallback($origin, $nodes);
|
||||
! is_null($refreshCallback) && $refreshCallback($beforeNodes, $nodes);
|
||||
}
|
||||
}
|
||||
} catch (\Throwable $exception) {
|
||||
|
Loading…
Reference in New Issue
Block a user