feat: replace status mutex with RWMutex
A RWMutex can be held by an arbitrary number of readers or a single writer.
statusMu
is (potentially) read when handling connections so this should decrease/avoid lock contention.
Edited by feistel
A RWMutex can be held by an arbitrary number of readers or a single writer.
statusMu
is (potentially) read when handling connections so this should decrease/avoid lock contention.