minor: pass string instead of interface
Vladimir Bauer
3 years ago
| 293 | 293 | if err != nil { |
| 294 | 294 | s.heapUpdated = false |
| 295 | 295 | render = func() error { return nil } |
| 296 | _, _ = fmt.Fprintln(s.debugOut, err) | |
| 296 | _, _ = fmt.Fprintln(s.debugOut, err.Error()) | |
| 297 | 297 | p.cancel() // cancel all bars |
| 298 | 298 | } |
| 299 | 299 | case <-p.done: |
| 300 | 300 | for s.heapUpdated { |
| 301 | 301 | err := render() |
| 302 | 302 | if err != nil { |
| 303 | _, _ = fmt.Fprintln(s.debugOut, err) | |
| 303 | _, _ = fmt.Fprintln(s.debugOut, err.Error()) | |
| 304 | 304 | return |
| 305 | 305 | } |
| 306 | 306 | } |