update deps; some code cleanup

This commit is contained in:
2024-02-13 18:29:05 +01:00
parent 55cf1b7eb4
commit 2ad5c57078
6 changed files with 48 additions and 46 deletions

View File

@@ -314,7 +314,7 @@ func (b *BuildManager) syncWorker(ctx context.Context) error {
log.Fatalf("error releasing ALPM handle: %v", err)
}
if err := retry.Fibonacci(ctx, 1*time.Second, func(ctx context.Context) error {
if err := retry.Fibonacci(ctx, 1*time.Second, func(_ context.Context) error {
if err := setupChroot(); err != nil {
log.Warningf("unable to upgrade chroot, trying again later")
return retry.RetryableError(err)