优化全局zap的打印,修复待机任务出现多个的情况
This commit is contained in:
@@ -25,8 +25,8 @@ func Play(ctx context.Context, file string) error {
|
||||
|
||||
a := make(chan struct{})
|
||||
defer close(a)
|
||||
wait.Add(1)
|
||||
go func() {
|
||||
wait.Add(1)
|
||||
defer wait.Done()
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user