diff --git a/container_option.go b/container_option.go index ad98711..f2ab01e 100644 --- a/container_option.go +++ b/container_option.go @@ -51,7 +51,7 @@ // rendering will start as soon as provided chan is closed. func WithRenderDelay(ch <-chan struct{}) ContainerOption { return func(s *pState) { - s.renderDelay = ch + s.delayRC = ch } } diff --git a/progress.go b/progress.go index 41997c8..5a56eec 100644 --- a/progress.go +++ b/progress.go @@ -45,7 +45,7 @@ reqWidth int popCompleted bool autoRefresh bool - renderDelay <-chan struct{} + delayRC <-chan struct{} manualRC <-chan interface{} shutdownNotifier chan<- interface{} queueBars map[*Bar]*Bar @@ -274,8 +274,8 @@ } func (s pState) autoRefreshListener(done chan struct{}) { - if s.renderDelay != nil { - <-s.renderDelay + if s.delayRC != nil { + <-s.delayRC } ticker := time.NewTicker(s.refreshRate) defer ticker.Stop()