We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bc88ed commit 6e10f3eCopy full SHA for 6e10f3e
1 file changed
batch-processing/main.go
@@ -104,8 +104,9 @@ func main() {
104
for i, row := range inputRecords[1:] {
105
url := row[0]
106
107
- inputFilepath := fmt.Sprintf("/tmp/%d-%d.%s", time.Now().UnixMilli(), rand.Int(), "jpg")
108
- outputFilepath := fmt.Sprintf("/tmp/%d-%d.%s", time.Now().UnixMilli(), rand.Int(), "jpg")
+ prefix := fmt.Sprintf("/tmp/%d-%d", time.Now().UnixMilli(), rand.Int())
+ inputFilepath := fmt.Sprintf("%s.%s", prefix, "jpg")
109
+ outputFilepath := fmt.Sprintf("%s-out.%s", prefix, "jpg")
110
111
log.Printf("downloading: row %d (%q) to %q\n", i, url, inputFilepath)
112
0 commit comments