fix(GODT-3094): Clean up old update files on bridge startup.

This commit is contained in:
Romain LE JEUNE
2023-11-02 10:43:55 +01:00
parent 1ac4e70115
commit 6cb233473a
6 changed files with 24 additions and 3 deletions

View File

@ -139,3 +139,9 @@ func (bridge *Bridge) installUpdate(ctx context.Context, job installJob) {
}
}, bridge.newVersionLock)
}
func (bridge *Bridge) RemoveOldUpdates() {
if err := bridge.updater.RemoveOldUpdates(); err != nil {
logrus.WithError(err).Error("Remove old updates fails")
}
}