mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix: Add omitempty for proper latency type (#3850)
This was causing an error on the frontend, because this value can be nil!
This commit is contained in:
@ -59,7 +59,7 @@ type WorkspaceAgent struct {
|
||||
Version string `json:"version"`
|
||||
Apps []WorkspaceApp `json:"apps"`
|
||||
// DERPLatency is mapped by region name (e.g. "New York City", "Seattle").
|
||||
DERPLatency map[string]DERPRegion `json:"latency"`
|
||||
DERPLatency map[string]DERPRegion `json:"latency,omitempty"`
|
||||
}
|
||||
|
||||
type WorkspaceAgentResourceMetadata struct {
|
||||
|
Reference in New Issue
Block a user