mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Fixes #1372 by updating s.sys.account pointer. This issue also showed that accounts are unnecessarily reloaded. This happened because account imports were not copied and thus, deepEqual detected a difference were none was. This was addressed by making the copy less shallow. Furthermore did deepEqual detects a difference when it compared slices that were appended to while processing a map. This was fixed by sorting before comparison. Noticed that Account.clients stored an unnecessary pointer. Removed duplicated code in systemAccount. Signed-off-by: Matthias Hanel <mh@synadia.com>
118 KiB
118 KiB