()
| 498 | } |
| 499 | |
| 500 | func (c *chatConfigCache) advisorConfigGenerationSnapshot() uint64 { |
| 501 | c.mu.RLock() |
| 502 | generation := c.advisorConfigGeneration |
| 503 | c.mu.RUnlock() |
| 504 | return generation |
| 505 | } |
| 506 | |
| 507 | func (c *chatConfigCache) storeAdvisorConfig(generation uint64, config codersdk.AdvisorConfig) { |
| 508 | c.mu.Lock() |