mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fixed lock inversion by not using account lock to get the name
Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
@@ -893,7 +893,7 @@ type SubDetail struct {
|
||||
func newSubDetail(sub *subscription) SubDetail {
|
||||
sd := newClientSubDetail(sub)
|
||||
if sub.client.acc != nil {
|
||||
sd.Account = sub.client.acc.GetName()
|
||||
sd.Account = sub.client.acc.Name
|
||||
}
|
||||
return sd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user