mirror of
https://github.com/livekit/livekit.git
synced 2026-05-15 00:55:32 +00:00
69800a45cb
* Reinstating a function used by cloud * Use go map for `subscribedTo`. Range over a sync.Map could produce unexpected results if there are concurrent changes (change in value or delete). While we do not change value (the value is a place holder in this map), just moving to go map to avoid hard to find concurrency issues. The lock scoping is well defined for the map. So, making the change to be more defensive.