Skip to content

Commit ffc6152

Browse files
authored
[Distributed] fix deprecation warning in LocalTesting (#61415)
1 parent 78f98be commit ffc6152

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
@@ -27,7 +27,7 @@ import WinSDK
2727
/// prototyping stages of development where a real system is not necessary yet.
2828
@available(SwiftStdlib 5.7, *)
2929
public final class LocalTestingDistributedActorSystem: DistributedActorSystem, @unchecked Sendable {
30-
public typealias ActorID = LocalTestingActorAddress
30+
public typealias ActorID = LocalTestingActorID
3131
public typealias ResultHandler = LocalTestingInvocationResultHandler
3232
public typealias InvocationEncoder = LocalTestingInvocationEncoder
3333
public typealias InvocationDecoder = LocalTestingInvocationDecoder
@@ -114,12 +114,12 @@ public final class LocalTestingDistributedActorSystem: DistributedActorSystem, @
114114

115115
init() {}
116116

117-
mutating func next() -> LocalTestingActorAddress {
117+
mutating func next() -> LocalTestingActorID {
118118
let id: Int = self.counterLock.withLock {
119119
self.counter += 1
120120
return self.counter
121121
}
122-
return LocalTestingActorAddress(parse: "\(id)")
122+
return LocalTestingActorID(id: "\(id)")
123123
}
124124
}
125125
}

0 commit comments

Comments
 (0)