(entityID string, pool params.Pool)
| 239 | } |
| 240 | |
| 241 | func (e *EntityCache) SetEntityPool(entityID string, pool params.Pool) { |
| 242 | e.mux.Lock() |
| 243 | defer e.mux.Unlock() |
| 244 | |
| 245 | poolEntity, err := pool.GetEntity() |
| 246 | if err != nil || poolEntity.ID != entityID { |
| 247 | return |
| 248 | } |
| 249 | |
| 250 | if cache, ok := e.entities[entityID]; ok { |
| 251 | e.pools[pool.ID] = pool |
| 252 | cache.Pools[pool.ID] = struct{}{} |
| 253 | e.entities[entityID] = cache |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | func (e *EntityCache) SetEntityScaleSet(entityID string, scaleSet params.ScaleSet) { |
| 258 | e.mux.Lock() |
no test coverage detected