Skip to content

Commit

Permalink
Changed contextMap to a ConcurrentHashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Thewsomeguy committed Oct 28, 2020
1 parent cb8eefd commit 68e2efb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SocketServer(

// userId <-> shardCount
private val shardCounts = ConcurrentHashMap<String, Int>()
val contextMap = HashMap<String, SocketContext>()
val contextMap = ConcurrentHashMap<String, SocketContext>()
@Suppress("LeakingThis")
private val handlers = WebSocketHandlers(contextMap)
private val resumableSessions = mutableMapOf<String, SocketContext>()
Expand Down

0 comments on commit 68e2efb

Please sign in to comment.