()
| 276 | } |
| 277 | |
| 278 | func (c *Cache) DeploymentStats() (codersdk.DeploymentStats, bool) { |
| 279 | deploymentStats := c.deploymentStatsResponse.Load() |
| 280 | if deploymentStats == nil { |
| 281 | return codersdk.DeploymentStats{}, false |
| 282 | } |
| 283 | return *deploymentStats, true |
| 284 | } |