Skip to content

Commit

Permalink
Code cleanup: rename CompressedOutputStream/CompressedInputStream res…
Browse files Browse the repository at this point in the history
…pectively Writer and Reader. Improve documentation
  • Loading branch information
flanglet committed Dec 7, 2023
1 parent a0559b9 commit fe87adf
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 97 deletions.
2 changes: 1 addition & 1 deletion v2/app/BlockCompressor.go
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ func (this *fileCompressTask) call() (int, uint64, uint64) {

}

cos, err := kio.NewCompressedOutputStreamWithCtx(output, this.ctx)
cos, err := kio.NewWriterWithCtx(output, this.ctx)

if err != nil {
if ioerr, isIOErr := err.(kio.IOError); isIOErr == true {
Expand Down
2 changes: 1 addition & 1 deletion v2/app/BlockDecompressor.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ func (this *fileDecompressTask) call() (int, uint64) {
}()
}

cis, err := kio.NewCompressedInputStreamWithCtx(input, this.ctx)
cis, err := kio.NewReaderWithCtx(input, this.ctx)

if err != nil {
if err.(*kio.IOError) != nil {
Expand Down
Loading

0 comments on commit fe87adf

Please sign in to comment.