Skip to content

Commit

Permalink
forgot to specify os.Interrupt signal which caused program to exit im…
Browse files Browse the repository at this point in the history
…mediately
  • Loading branch information
seanshahkarami committed Jun 7, 2022
1 parent 78a2d0c commit 5a49cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func main() {
}
log.Printf("using s3 at %s@%s in bucket %s", config.S3Config.AccessKeyID, config.S3Config.Endpoint, config.S3Config.Bucket)

ctx, _ := signal.NotifyContext(context.Background())
ctx, _ := signal.NotifyContext(context.Background(), os.Interrupt)

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

0 comments on commit 5a49cdc

Please sign in to comment.