Skip to content

Commit

Permalink
chore(refactor): comment 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 10, 2024
1 parent 09e6e2f commit b3b53f7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions server/pkg/publisher/s3_filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ func (fs *S3Filesystem) WriteFileStream(ctx context.Context, path string, data i
return nil
}

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

func (o *debugReader) Read(p []byte) (int, error) {
n, err := o.origReader.Read(p)
// 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))
// o.logger.Debug(fmt.Sprintf("-- debugReader Read(%p) -> %d, %v", p, n, err))

return n, err
}
// return n, err
// }

0 comments on commit b3b53f7

Please sign in to comment.