I encountered a data race when running parallelized tests with this library. The stack demonstrated a race between NewSession() performing a write operation on a map and GetSessionByID() performing a racing read operation on the same map.
This PR inserts a mutex around map access to solve this data race.
I encountered a data race when running parallelized tests with this library. The stack demonstrated a race between
NewSession()
performing a write operation on a map andGetSessionByID()
performing a racing read operation on the same map.This PR inserts a mutex around map access to solve this data race.