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:
Patrik Nordwall 2018-02-01 12:54:29 +01:00
parent 0cc9785d73
commit 2cd1187e7b
10 changed files with 182 additions and 61 deletions

View file

@ -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,