mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
single case selct
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
This commit is contained in:
@@ -624,10 +624,8 @@ func getResourceLogs(ctx context.Context, config *rest.Config, cli client.Client
|
||||
// 1. no log printed from logC
|
||||
// 2. outer ctx is canceled
|
||||
// Either way, return the logs collected so far
|
||||
select {
|
||||
case <-logCtx.Done():
|
||||
return logs.String(), nil
|
||||
}
|
||||
<-logCtx.Done()
|
||||
return logs.String(), nil
|
||||
}
|
||||
|
||||
// RunPipeline will run a pipeline
|
||||
|
||||
Reference in New Issue
Block a user