Skip to content

Commit 292bb7a

Browse files
committed
avoid deprecation warnings
1 parent 9fc683a commit 292bb7a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stdlib/public/Distributed/LocalTestingDistributedActorSystem.swift

Lines changed: 4 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
@@ -115,16 +115,17 @@ public final class LocalTestingDistributedActorSystem: DistributedActorSystem, @
115115

116116
init() {}
117117

118-
mutating func next() -> LocalTestingActorAddress {
118+
mutating func next() -> LocalTestingActorID {
119119
let id: Int = self.counterLock.withLock {
120120
self.counter += 1
121121
return self.counter
122122
}
123-
return LocalTestingActorAddress(parse: "\(id)")
123+
return LocalTestingActorID(id: "\(id)")
124124
}
125125
}
126126
}
127127

128+
@available(SwiftStdlib 5.7, *)
128129
@available(*, deprecated, renamed: "LocalTestingActorID")
129130
public typealias LocalTestingActorAddress = LocalTestingActorID
130131

0 commit comments

Comments
 (0)