mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Distributed] LocalDAS cannot gain constraint on resolve method (#63321)
This commit is contained in:
committed by
GitHub
parent
0af352314a
commit
48c6f59186
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user