Fixed typo.

This commit is contained in:
李铭昕 2022-07-12 14:19:59 +08:00 committed by GitHub
parent 134cfaa383
commit 1bcd444b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {