You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/ActorSingletonPlugin/ActorSingletonManager.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ internal distributed actor ActorSingletonManager<Act: DistributedActor> where Ac
55
55
}
56
56
57
57
func takeOver(from:UniqueNode?)asyncthrows->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())
59
59
60
60
// TODO: (optimization) tell `ActorSingletonManager` on `from` node that this node is taking over (https://github.com/apple/swift-distributed-actors/issues/329)
@@ -66,7 +66,7 @@ internal distributed actor ActorSingletonManager<Act: DistributedActor> where Ac
66
66
}
67
67
68
68
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())
70
70
71
71
// TODO: (optimization) tell `ActorSingletonManager` on `to` node that this node is handing off (https://github.com/apple/swift-distributed-actors/issues/329)
0 commit comments