chore(grequests): update grequests to v2
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Tom Neuber 2025-06-28 19:36:10 +02:00
parent a88da88a47
commit 00bf1820f1
Signed by: tom
GPG key ID: F17EFE4272D89FF6
5 changed files with 18 additions and 13 deletions

View file

@ -1,6 +1,7 @@
package main
import (
"context"
"log/slog"
"net/http"
"os"
@ -37,7 +38,7 @@ func main() {
ctx := downloader.NewContext(config.DataFile, config.DataURL)
if !ctx.FileExists() {
if downloadErr := ctx.Download(); downloadErr != nil {
if downloadErr := ctx.Download(context.Background()); downloadErr != nil {
panic(err)
}
slog.Info("saved file", "path", ctx.Filename)