diff --git a/container_option.go b/container_option.go index f238b1d..f6013e7 100644 --- a/container_option.go +++ b/container_option.go @@ -39,7 +39,7 @@ // WithManualRefresh disables internal auto refresh time.Ticker. // Refresh will occur upon receive value from provided ch. -func WithManualRefresh(ch <-chan interface{}) ContainerOption { +func WithManualRefresh(ch chan interface{}) ContainerOption { return func(s *pState) { s.externalRefresh = ch s.disableAutoRefresh = true diff --git a/progress.go b/progress.go index f2cb7c6..4dc6129 100644 --- a/progress.go +++ b/progress.go @@ -54,7 +54,7 @@ disableAutoRefresh bool rr time.Duration uwg *sync.WaitGroup - externalRefresh <-chan interface{} + externalRefresh chan interface{} renderDelay <-chan struct{} shutdownNotifier chan struct{} queueBars map[*Bar]*Bar