cleaning up
parent
7949c70929
commit
440aba6400
|
|
@ -216,7 +216,7 @@ func (a *APIClient) RestConfigOrDie() *restclient.Config {
|
|||
return cfg
|
||||
}
|
||||
|
||||
// CachedDiscovery returns a cached discovery client.
|
||||
// CachedDiscoveryOrDie returns a cached discovery client.
|
||||
func (a *APIClient) CachedDiscoveryOrDie() *disk.CachedDiscoveryClient {
|
||||
a.mx.Lock()
|
||||
defer a.mx.Unlock()
|
||||
|
|
|
|||
|
|
@ -103,12 +103,12 @@ func (l *Log) LogCleared() {
|
|||
})
|
||||
}
|
||||
|
||||
// LogErrored notifies an error occurred.
|
||||
// LogFailed notifies an error occurred.
|
||||
func (l *Log) LogFailed(err error) {
|
||||
l.app.Flash().Err(err)
|
||||
}
|
||||
|
||||
// LogsChanged updates the logs.
|
||||
// LogChanged updates the logs.
|
||||
func (l *Log) LogChanged(lines []string) {
|
||||
log.Debug().Msgf("LOG-CHANGED %d", len(lines))
|
||||
l.app.QueueUpdateDraw(func() {
|
||||
|
|
@ -351,6 +351,7 @@ func (l *Log) textWrapCmd(*tcell.EventKey) *tcell.EventKey {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ToggleAutoScrollCmd toggles autoscroll status.
|
||||
func (l *Log) ToggleAutoScrollCmd(evt *tcell.EventKey) *tcell.EventKey {
|
||||
l.indicator.ToggleAutoScroll()
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue