Skip to content

authz: Move locking of emailsCacheMutex

Administrator requested to merge rs/move-mutex-use into main

Created by: ryanslade

Before we were locking well before actually making any changes to the map which would hold the lock for too long.

Also added some comments around why we lock in a couple of other places as it wasn't obvious.

Test plan

Existing tests pass

Merge request reports

Loading