Skip to content

Commit fdc7151

Browse files
committed
Fix warnings
1 parent 71c8537 commit fdc7151

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Sources/DistributedActors/Pattern/WorkerPool.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ public distributed actor WorkerPool<Worker: DistributedWorker>: DistributedWorke
8383
/// Control for waiting and getting notified for new worker.
8484
private var newWorkerContinuations: [CheckedContinuation<Void, Never>] = []
8585

86-
// TODO(distributed): the convenience is no longer required, but because this only got fixed in very recent toolchains; we keep it on for now. We should be able to remove this once 5.7 lands with this fixed (it is the actors and initializers proposal)
87-
public convenience init(selector: Selector, actorSystem: ActorSystem) async throws {
86+
public init(selector: Selector, actorSystem: ActorSystem) async throws {
8887
try await self.init(settings: .init(selector: selector), actorSystem: actorSystem)
8988
}
9089

Sources/DistributedActorsTestKit/ActorTestKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ extension ActorTestKit {
182182
var lastError: Error?
183183
var polledTimes = 0
184184

185-
let res: T? = try await ActorTestKit.withRepeatableContext {
185+
let res: T? = await ActorTestKit.withRepeatableContext {
186186
while deadline.hasTimeLeft() {
187187
do {
188188
polledTimes += 1

0 commit comments

Comments
 (0)