Fixes for comments

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2019-03-25 11:48:22 -07:00
parent bacb73a403
commit 92f9f7ed56
3 changed files with 7 additions and 10 deletions

View File

@@ -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)
}