Skip to content

Commit

Permalink
remove exit 0
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Sep 1, 2023
1 parent 0f61857 commit fee703a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/photographer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,4 @@ func execute(ctx context.Context, snapshotStorage *util.SnapshotStorage, history
log.Fatalf("%v \n", err)
}
snapshotStorage.EphemeralUpload(ctx, snapshotfilename)

// If we are here, it means that the snapshot was uploaded successfully
// So we already deleted the snapshot
// Then we can exit to have sure that we're not using more memory than we need
os.Exit(0)
}

0 comments on commit fee703a

Please sign in to comment.