Skip to content

Commit 3f3a91e

Browse files
using Background instead of TODO
1 parent 1d68307 commit 3f3a91e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func main() {
177177
}
178178
log.Printf("using s3 at %s@%s in bucket %s", config.S3Config.AccessKeyID, config.S3Config.Endpoint, config.S3Config.Bucket)
179179

180-
ctx, cancel := context.WithCancel(context.TODO())
180+
ctx, cancel := context.WithCancel(context.Background())
181181

182182
// add user cancel handler
183183
sig := make(chan os.Signal, 1)

worker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (up *mockUploader) UploadFile(src, dst string, meta *MetaData) error {
5656
}
5757

5858
func scanAndProcessDirOnce(worker *Worker, root string) error {
59-
ctx, cancel := context.WithCancel(context.TODO())
59+
ctx, cancel := context.WithCancel(context.Background())
6060
defer cancel()
6161
jobs := make(chan Job)
6262

0 commit comments

Comments
 (0)