diff --git a/progress.go b/progress.go index c102074..e815045 100644 --- a/progress.go +++ b/progress.go @@ -41,6 +41,11 @@ termWidth int bar *Bar } + + widthSync struct { + listen []chan int + result []chan int + } ) const ( @@ -199,11 +204,6 @@ return } close(p.operationCh) -} - -type widthSync struct { - listen []chan int - result []chan int } // server monitors underlying channels and renders any progress bars