(creds params.ForgeCredentials)
| 112 | } |
| 113 | |
| 114 | func (e *EntityCache) UpdateCredentialsInAffectedEntities(creds params.ForgeCredentials) { |
| 115 | e.mux.Lock() |
| 116 | defer e.mux.Unlock() |
| 117 | |
| 118 | for entityID, cache := range e.entities { |
| 119 | if cache.Entity.Credentials.GetID() == creds.GetID() { |
| 120 | cache.Entity.Credentials = creds |
| 121 | e.entities[entityID] = cache |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | func (e *EntityCache) GetEntity(entityID string) (params.ForgeEntity, bool) { |
| 127 | e.mux.Lock() |
no test coverage detected