Skip to content

Commit 5a49cdc

Browse files
forgot to specify os.Interrupt signal which caused program to exit immediately
1 parent 78a2d0c commit 5a49cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

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

182-
ctx, _ := signal.NotifyContext(context.Background())
182+
ctx, _ := signal.NotifyContext(context.Background(), os.Interrupt)
183183

184184
log.Printf("starting loader...")
185185
if err := ScanAndProcessDir(ctx, config); err != nil {

0 commit comments

Comments
 (0)