Correction, get from ref first, see #944
This commit is contained in:
parent
5c20c07199
commit
a515c28e93
1 changed files with 1 additions and 1 deletions
|
|
@ -171,9 +171,9 @@ trait ConsistentHashingLike { this: RouterConfig ⇒
|
|||
// update consistentHash when routees has changed
|
||||
// changes to routees are rare and when no changes this is a quick operation
|
||||
def updateConsistentHash(): ConsistentHash[ActorRef] = {
|
||||
val currentRoutees = routeeProvider.routees
|
||||
val oldConsistentHashTuple = consistentHashRef.get
|
||||
val (oldConsistentHashRoutees, oldConsistentHash) = oldConsistentHashTuple
|
||||
val currentRoutees = routeeProvider.routees
|
||||
if (currentRoutees ne oldConsistentHashRoutees) {
|
||||
// when other instance, same content, no need to re-hash, but try to set routees
|
||||
val consistentHash =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue