[Distributed] LocalDAS cannot gain constraint on resolve method (#63321)

This commit is contained in:
Konrad `ktoso` Malawski
2023-02-01 13:56:48 +09:00
committed by GitHub
parent 0af352314a
commit 48c6f59186

View File

@@ -43,7 +43,7 @@ public final class LocalTestingDistributedActorSystem: DistributedActorSystem, @
public init() {}
public func resolve<Act>(id: ActorID, as actorType: Act.Type)
throws -> Act? where Act: DistributedActor, Act.ID == ActorID {
throws -> Act? where Act: DistributedActor {
guard let anyActor = self.activeActorsLock.withLock({ self.activeActors[id] }) else {
throw LocalTestingDistributedActorSystemError(message: "Unable to locate id '\(id)' locally")
}