context.TODO()
This commit is contained in:
parent
f602c8c31e
commit
aebf85613e
3 changed files with 3 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue