Websocket server mutable HashMaps ? #2412
Unanswered
fabracht
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone. I wrote a websocket server with actix and I would like to ask a question.
I followed a bunch of different tutorials and examples to write this. You can find it at my git repo.
https://github.com/fabracht/actix-websocket
What I want to ask is if there is a problem in not wrapping these struct values as they are:
Or should I wrap them in a Mutex. I'm having some difficulties understanding how the address:
in main on line 14 gets shared between threads.
Beta Was this translation helpful? Give feedback.
All reactions