Skip to content

Commit 2e5d4b6

Browse files
committed
Fix build errors
1 parent 1dd0604 commit 2e5d4b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/Distributed/LocalTestingDistributedActorSystem.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ public final class LocalTestingDistributedActorSystem: DistributedActorSystem, @
5050
throw LocalTestingDistributedActorSystemError(message: "Unable to locate id '\(id)' locally")
5151
}
5252
guard let actor = anyActor as? Act else {
53-
throw LocalTestingDistributedActorSystemError(message: "Failed to resolve id '\(id)' as \(Act.Type)")
53+
throw LocalTestingDistributedActorSystemError(message: "Failed to resolve id '\(id)' as \(Act.Type.self)")
5454
}
5555
return actor
5656
}
5757

5858
public func assignID<Act>(_ actorType: Act.Type) -> ActorID
5959
where Act: DistributedActor {
60-
let id = ActorAddress(parse: "\(self.idProvider.next())")
60+
let id = self.idProvider.next()
6161
self.assignedIDs.insert(id)
6262
return id
6363
}
@@ -72,7 +72,7 @@ public final class LocalTestingDistributedActorSystem: DistributedActorSystem, @
7272
}
7373

7474
public func resignID(_ id: ActorID) {
75-
guard self.assignedIDs.contains(actor.id) else {
75+
guard self.assignedIDs.contains(id) else {
7676
fatalError("Attempted to resign unknown id '\(id)'")
7777
}
7878
self.activeActors.removeValue(forKey: id)

0 commit comments

Comments
 (0)