Skip to content

Commit

Permalink
dynamic-sink
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaydubina committed Feb 22, 2024
1 parent 2af0d69 commit 1a32a96
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions aws_s3_reader_seeker.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ func NewS3ReadSeeker(
s3client *s3.S3,
bucket string,
key string,
minChunkSize int,
chunkSizePolicy ChunkSizePolicy,
) *S3ReadSeeker {
return &S3ReadSeeker{
s3client: s3client,
bucket: bucket,
key: key,
chunkSizePolicy: chunkSizePolicy,
sink: make([]byte, minChunkSize),
}
}

Expand Down
3 changes: 0 additions & 3 deletions aws_s3_reader_seeker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func TestS3ReadSeeker(t *testing.T) {
s3client,
bucket,
key,
1<<10*100,
awss3reader.FixedChunkSizePolicy{Size: 1 << 10 * 100}, // 100 KB
)
defer r.Close()
Expand Down Expand Up @@ -76,7 +75,6 @@ func TestS3ReadSeeker_SeekLarge(t *testing.T) {
s3client,
bucket,
key,
1<<10*100,
awss3reader.FixedChunkSizePolicy{Size: 1 << 10 * 100}, // 100 KB
)
defer r.Close()
Expand Down Expand Up @@ -131,7 +129,6 @@ func TestS3ReadSeeker_SeekDiscardHTTPBody(t *testing.T) {
s3client,
bucket,
key,
1<<10*100,
awss3reader.FixedChunkSizePolicy{Size: 1 << 10 * 100}, // 100 KB
)
defer r.Close()
Expand Down

0 comments on commit 1a32a96

Please sign in to comment.