()
| 162 | } |
| 163 | |
| 164 | func (w *Worker) loadAllInstances() error { |
| 165 | instances, err := w.store.ListAllInstances(w.ctx) |
| 166 | if err != nil { |
| 167 | return fmt.Errorf("listing instances: %w", err) |
| 168 | } |
| 169 | |
| 170 | for _, instance := range instances { |
| 171 | cache.SetInstanceCache(instance) |
| 172 | } |
| 173 | return nil |
| 174 | } |
| 175 | |
| 176 | func (w *Worker) loadAllGithubCredentials() error { |
| 177 | creds, err := w.store.ListGithubCredentials(w.ctx) |
no test coverage detected