()
| 91 | } |
| 92 | |
| 93 | func (t *toolsUpdater) Stop() error { |
| 94 | t.mux.Lock() |
| 95 | defer t.mux.Unlock() |
| 96 | |
| 97 | if !t.running { |
| 98 | return nil |
| 99 | } |
| 100 | |
| 101 | t.running = false |
| 102 | close(t.quit) |
| 103 | |
| 104 | return nil |
| 105 | } |
| 106 | |
| 107 | func (t *toolsUpdater) updateTools() error { |
| 108 | slog.DebugContext(t.ctx, "updating tools", "last_update", t.lastUpdate, "entity", t.entity.String(), "forge_type", t.entity.Credentials.ForgeType) |
no test coverage detected