Skip to content

Commit a08bcec

Browse files
committed
Fix compilation errors
1 parent 0ffd2b4 commit a08bcec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ActorSingletonPlugin/ActorSingletonManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ internal distributed actor ActorSingletonManager<Act: DistributedActor> where Ac
5555
}
5656

5757
func takeOver(from: UniqueNode?) async throws -> Act {
58-
self.log.debug("Take over singleton [\(self.settings.name)] from [\(optional: from)]", metadata: self.metadata())
58+
self.log.debug("Take over singleton [\(self.settings.name)] from [\(String(describing: from))]", metadata: self.metadata())
5959

6060
// TODO: (optimization) tell `ActorSingletonManager` on `from` node that this node is taking over (https://github.com/apple/swift-distributed-actors/issues/329)
6161
let singleton = try await _Props.$forSpawn.withValue(self.singletonProps._knownAs(name: self.settings.name)) {
@@ -66,7 +66,7 @@ internal distributed actor ActorSingletonManager<Act: DistributedActor> where Ac
6666
}
6767

6868
func handOver(to: UniqueNode?) throws {
69-
self.log.debug("Hand over singleton [\(self.settings.name)] to [\(optional: to)]", metadata: self.metadata())
69+
self.log.debug("Hand over singleton [\(self.settings.name)] to [\(String(describing: to))]", metadata: self.metadata())
7070

7171
// TODO: (optimization) tell `ActorSingletonManager` on `to` node that this node is handing off (https://github.com/apple/swift-distributed-actors/issues/329)
7272
self.singleton = nil

0 commit comments

Comments
 (0)