-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actor Registry #1969
Actor Registry #1969
Conversation
2dcc86b
to
25948e4
Compare
25948e4
to
03ec32a
Compare
Closes #1893
03ec32a
to
df175b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great; I have two questions though.
- Why are we using
std::sync::RwLock
instead of tokio'sRwLock
? Is there any particular reason? - Unwrapping a poisoned lock would result in a crash. Is this what we want, or do we have a recovery logic?
Two great questions... I'll start by 2.
Outside of this, if something on which there are no contention like it is the case here, using sync::Mutex is fine, and actually more efficient.
|
fd51d46
to
e4e85c1
Compare
As discussed offline with @guilload , we might want a registry for service like actors that are singleton (in the |
No description provided.