Skip to content

Commit 65e6d6a

Browse files
authored
Fixed SocketFactory::bindAfterRefreshed. (#4921)
1 parent 7fcdccb commit 65e6d6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SocketFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ protected function bindAfterRefreshed(LoadBalancerInterface $loadBalancer): void
8383
$items = [];
8484
/** @var Node $node */
8585
foreach ($beforeNodes as $node) {
86-
$key = $node->host . $node->host . $node->weight . $node->pathPrefix;
86+
$key = $node->host . $node->port . $node->weight . $node->pathPrefix;
8787
$items[$key] = true;
8888
}
8989

9090
foreach ($nodes as $node) {
91-
$key = $node->host . $node->host . $node->weight . $node->pathPrefix;
91+
$key = $node->host . $node->port . $node->weight . $node->pathPrefix;
9292
if (array_key_exists($key, $items)) {
9393
unset($items[$key]);
9494
}

0 commit comments

Comments
 (0)