Don't obliterate the lock

This commit is contained in:
Dane Everitt 2020-12-16 20:21:22 -08:00
parent 59a111de39
commit 16118874cf
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

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