Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Oct 12, 2023
1 parent cb465d1 commit 33ac601
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ func Upload(input io.Reader, outputURI string, waitBetweenWrites, writeTimeout t
}

Check warning on line 35 in core/uploader.go

View check run for this annotation

Codecov / codecov/patch

core/uploader.go#L30-L35

Added lines #L30 - L35 were not covered by tests

if strings.HasSuffix(outputURI, ".ts") || strings.HasSuffix(outputURI, ".mp4") {
// For segments we just write them in one go here and return early.
// (Otherwise the incremental write logic below caused issues with clipping since it results in partial segments being written.)
_, err := session.SaveData(context.Background(), "", input, fields, writeTimeout)
return err
}

Check warning on line 42 in core/uploader.go

View check run for this annotation

Codecov / codecov/patch

core/uploader.go#L38-L42

Added lines #L38 - L42 were not covered by tests
Expand Down

0 comments on commit 33ac601

Please sign in to comment.