Merge pull request #751 from bacongobbler/lint-indentation

fix linter suggestion
This commit is contained in:
Matthew Fisher 2018-05-18 09:41:56 -07:00 коммит произвёл GitHub
Родитель 0770658363 c03d800375
Коммит 57ed7f2bde
1 изменённых файлов: 17 добавлений и 17 удалений

Просмотреть файл

@ -142,24 +142,24 @@ func (cn *connectCmd) run(runningEnvironment string) (err error) {
os.Stdout.Close()
<-done
return nil
} else {
for _, cc := range connection.ContainerConnections {
readCloser, err := connection.RequestLogStream(deployedApp.Namespace, cc.ContainerName, cn.logLines)
if err != nil {
return err
}
defer readCloser.Close()
go writeContainerLogs(cn.out, readCloser, cc.ContainerName)
}
for _, cc := range connection.ContainerConnections {
readCloser, err := connection.RequestLogStream(deployedApp.Namespace, cc.ContainerName, cn.logLines)
if err != nil {
return err
}
ticker := time.NewTicker(5 * time.Minute)
defer ticker.Stop()
for {
select {
case <-ticker.C:
fmt.Fprintf(cn.out, connectionMessage)
case <-done:
return nil
}
defer readCloser.Close()
go writeContainerLogs(cn.out, readCloser, cc.ContainerName)
}
ticker := time.NewTicker(5 * time.Minute)
defer ticker.Stop()
for {
select {
case <-ticker.C:
fmt.Fprintf(cn.out, connectionMessage)
case <-done:
return nil
}
}
}