entityId => Behavior in ClusterSharding API, #24470
* spawn with String => Behavior since the entityId is often needed * some type inference is lost, and completely breaks down with overloads
This commit is contained in:
parent
0cc9785d73
commit
2cd1187e7b
10 changed files with 182 additions and 61 deletions
|
|
@ -329,7 +329,7 @@ abstract class ClusterShardingSpec(config: ClusterShardingSpecConfig) extends Mu
|
|||
system.actorOf(
|
||||
ShardRegion.props(
|
||||
typeName = typeName,
|
||||
entityProps = qualifiedCounterProps(typeName),
|
||||
entityProps = _ ⇒ qualifiedCounterProps(typeName),
|
||||
settings = settings,
|
||||
coordinatorPath = "/user/" + typeName + "Coordinator/singleton/coordinator",
|
||||
extractEntityId = extractEntityId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue