We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A member of Akka team provided great code review. We need to fix them at least.
akka/akka-http#2391 (comment)
The text was updated successfully, but these errors were encountered:
Would really appreciate your efforts to keep open source code updated!
Sorry, something went wrong.
@jrudolph 's first suggestion is:
Try to get rid of mutable state as much as possible. Global mutable state in a singleton object (like ChatRooms) is absolutely forbidden ;)
In the latest version, the singleton ChatRoom still has a mutable variable to maintain the state:
ChatRoom
var chatRooms: mutable.Map[Int, ActorRef]
It can be improved by using context.become:
context.become
context.become(update(chatRooms))
while update receives the current state as a parameter. (example)
update
yeah, that's good point.
No branches or pull requests
A member of Akka team provided great code review. We need to fix them at least.
akka/akka-http#2391 (comment)
The text was updated successfully, but these errors were encountered: