cmd/htpacker: swap out progress bar library
Switch to a simpler progress bar library. I've been having trouble tracking down a panic that seemed to affect the prior code; the new code is much easier and uses far fewer async channels and things.
This commit is contained in:
parent
3974db129e
commit
19b2560e2d
6 changed files with 144 additions and 177 deletions
|
|
@ -364,7 +364,7 @@ func (p *packer) packFile(path string, fileToPack FileToPack) {
|
|||
defer p.progress.End(fileToPack.Filename, "gzip")
|
||||
if err := p.Gzip(data, info); err != nil {
|
||||
return fmt.Errorf("gzip compression of %s "+
|
||||
"failed: %v", fileToPack.Filename, err)
|
||||
"failed: %w", fileToPack.Filename, err)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
|
@ -375,7 +375,7 @@ func (p *packer) packFile(path string, fileToPack FileToPack) {
|
|||
defer p.progress.End(fileToPack.Filename, "brotli")
|
||||
if err := p.Brotli(data, info); err != nil {
|
||||
return fmt.Errorf("brotli compression of %s "+
|
||||
"failed: %v", fileToPack.Filename, err)
|
||||
"failed: %w", fileToPack.Filename, err)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue