Skip to content

Commit

Permalink
upload: remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 16, 2024
1 parent 9d0fe43 commit 66c6524
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,10 @@ func (cli *Client) UploadReader(ctx context.Context, plaintext io.Reader, tempFi
err = fmt.Errorf("failed to create temporary file: %w", err)
return
}
fmt.Println("OPENED TEMPFILE", tempFile.(*os.File).Name())
defer func() {
tempFileFile := tempFile.(*os.File)
_ = tempFileFile.Close()
_ = os.Remove(tempFileFile.Name())
fmt.Println("REMOVED TEMPFILE", tempFile.(*os.File).Name())
}()
}
resp.FileSHA256, resp.FileEncSHA256, resp.FileLength, err = cbcutil.EncryptStream(cipherKey, iv, macKey, plaintext, tempFile)
Expand Down

0 comments on commit 66c6524

Please sign in to comment.