-
Notifications
You must be signed in to change notification settings - Fork 17
Conversation
@enrico-kaack-comp You have pull request review open invite, please check |
func processorRoutine(inputStream io.Reader, outputStream io.WriteCloser) error { | ||
defer outputStream.Close() | ||
|
||
tmpfile, err := ioutil.TempFile("", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would interest me too
return errors.New("archiveWriter must not be nil") | ||
} | ||
|
||
tempfile, err := ioutil.TempFile("", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explain that you use the tempFile for size calculation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you write a file to a tar archive, you must know the size upfront (gets written into the preceding file header)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i mean a comment that the tempfile only exists for that reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
tim's no longer active in the project
What this PR does / why we need it:
first PR in a series of PRs for the implementation of the CTT functionality.
Contains:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: