Check download auth

This commit is contained in:
Samuel Lorch 2024-06-23 03:04:06 +02:00
parent 896ab0edc3
commit f232e08945
4 changed files with 40 additions and 6 deletions

View file

@ -37,7 +37,7 @@ func RunHealthCheck(conf config.Config, t *types.Task, data types.HealthCheckDat
}
}()
err := downloadFile(ctx, l, conf.Worker.Address, path, t)
err := downloadFile(ctx, l, conf, path, t)
if err != nil {
l.ErrorContext(ctx, "File Download Failed", "err", err)
return