apple / swift-distributed-actors

Peer-to-peer cluster implementation for Swift Distributed Actors
https://apple.github.io/swift-distributed-actors/
Apache License 2.0
580 stars 54 forks source link

Remove __secretlyKnownToBeLocal, adopt whenLocal #1149

Closed akbashev closed 4 months ago

akbashev commented 4 months ago

Motivation:

Calling __secretlyKnownToBeLocal somehow doesn't guarantee isolation and crashes sometimes (e.g. #1140). Not sure what exact issue though, but anyway it's better to call whenLocal.

Modifications:

Moved from calling __secretlyKnownToBeLocal to whenLocal where possible.

Result:

ktoso commented 4 months ago

@swift-server-bot test this please

ktoso commented 4 months ago

@swift-server-bot test this please