mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Distributed] fix deprecation warning in LocalTesting (#61415)
This commit is contained in:
@@ -27,7 +27,7 @@ import WinSDK
|
||||
/// prototyping stages of development where a real system is not necessary yet.
|
||||
@available(SwiftStdlib 5.7, *)
|
||||
public final class LocalTestingDistributedActorSystem: DistributedActorSystem, @unchecked Sendable {
|
||||
public typealias ActorID = LocalTestingActorAddress
|
||||
public typealias ActorID = LocalTestingActorID
|
||||
public typealias ResultHandler = LocalTestingInvocationResultHandler
|
||||
public typealias InvocationEncoder = LocalTestingInvocationEncoder
|
||||
public typealias InvocationDecoder = LocalTestingInvocationDecoder
|
||||
@@ -114,12 +114,12 @@ public final class LocalTestingDistributedActorSystem: DistributedActorSystem, @
|
||||
|
||||
init() {}
|
||||
|
||||
mutating func next() -> LocalTestingActorAddress {
|
||||
mutating func next() -> LocalTestingActorID {
|
||||
let id: Int = self.counterLock.withLock {
|
||||
self.counter += 1
|
||||
return self.counter
|
||||
}
|
||||
return LocalTestingActorAddress(parse: "\(id)")
|
||||
return LocalTestingActorID(id: "\(id)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user