context.TODO()

This commit is contained in:
marco 2024-04-20 23:08:20 +02:00
parent f602c8c31e
commit aebf85613e
3 changed files with 3 additions and 5 deletions

View file

@ -53,8 +53,7 @@ func downloadDataSet(dataFolder string, force bool, reader io.Reader, logger *lo
WithShelfLife(7 * 24 * time.Hour)
}
// TODO: real context
ctx := context.Background()
ctx := context.TODO()
downloaded, err := d.Download(ctx)
if err != nil {

View file

@ -130,9 +130,8 @@ func (i *Item) FetchContentTo(destPath string) (bool, string, error) {
VerifyHash("sha256", wantHash)
// TODO: recommend hub update if hash does not match
// TODO: use real context
ctx := context.Background()
ctx := context.TODO()
downloaded, err := d.Download(ctx)
if err != nil {

View file

@ -41,7 +41,7 @@ func (r *RemoteHubCfg) fetchIndex(destPath string) (bool, error) {
return false, fmt.Errorf("failed to build hub index request: %w", err)
}
ctx := context.Background()
ctx := context.TODO()
downloaded, err := downloader.
New(url).