Don't obliterate the lock
This commit is contained in:
parent
59a111de39
commit
16118874cf
|
@ -35,7 +35,7 @@ func (ru *ResourceUsage) MarshalJSON() ([]byte, error) {
|
||||||
// Alias the resource usage so that we don't infinitely recurse when marshaling the struct.
|
// Alias the resource usage so that we don't infinitely recurse when marshaling the struct.
|
||||||
type alias ResourceUsage
|
type alias ResourceUsage
|
||||||
|
|
||||||
return json.Marshal(alias(*ru))
|
return json.Marshal((*alias)(ru))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the resource usage stats for the server instance. If the server is not running, only the
|
// Returns the resource usage stats for the server instance. If the server is not running, only the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user