Skip to content

Commit

Permalink
chore(lint): remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Frolov <[email protected]>
  • Loading branch information
Fral738 committed Dec 11, 2024
1 parent b3b53f7 commit 5f79d6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
8 changes: 0 additions & 8 deletions Taskfile.dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ version: "3"

silent: true

vars:
version: "0.0.0"
os: "{{OS}}"
arch: '{{ternary "arm64" ARCH (eq ARCH "arm")}}'
mode: '{{ternary "cgo" "go" (eq .os "linux")}}'
cgoTags: "dfrunsecurity dfrunnetwork dfrunmount dfssh containers_image_openpgp osusergo exclude_graphdriver_devicemapper netgo no_devmapper static_build cni"
goTags: "dfrunsecurity dfrunnetwork dfrunmount dfssh containers_image_openpgp"

tasks:
sign:
desc: 'Sign last version tag + origin/main and push signatures. Important vars: "refs".'
Expand Down
19 changes: 2 additions & 17 deletions server/pkg/publisher/s3_filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,8 @@ func (fs *S3Filesystem) WriteFileStream(ctx context.Context, path string, data i
uploader := s3manager.NewUploader(sess)

upParams := &s3manager.UploadInput{
Bucket: &fs.BucketName,
Key: &path,
// DEBUG
// Body: &debugReader{origReader: data, logger: fs.logger},
Bucket: &fs.BucketName,
Key: &path,
Body: data,
CacheControl: &cacheControl,
}
Expand All @@ -181,16 +179,3 @@ func (fs *S3Filesystem) WriteFileStream(ctx context.Context, path string, data i

return nil
}

// type debugReader struct {
// origReader io.Reader
// logger hclog.Logger
// }

// func (o *debugReader) Read(p []byte) (int, error) {
// n, err := o.origReader.Read(p)

// o.logger.Debug(fmt.Sprintf("-- debugReader Read(%p) -> %d, %v", p, n, err))

// return n, err
// }

0 comments on commit 5f79d6b

Please sign in to comment.