mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
@@ -710,6 +710,7 @@ func (s *Server) registerAccount(acc *Account) {
|
||||
// already created (global account), so use locking and
|
||||
// make sure we create only if needed.
|
||||
acc.mu.Lock()
|
||||
// TODO(dlc)- Double check that we need this for GWs.
|
||||
if acc.rm == nil && s.opts != nil && s.shouldTrackSubscriptions() {
|
||||
acc.rm = make(map[string]int32)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user