This commit is contained in:
zhuxu 2026-04-16 16:45:31 +08:00
parent 345f6d4a3d
commit 04c6991403
2 changed files with 3 additions and 3 deletions

View File

@ -42,11 +42,11 @@ func init() {
}
}
func ConnectCLs() {
func ConnectCLs(ctx context.Context) {
for cl, ch := range cl2Chan {
go func(ctx context.Context, cl string, ch chan []byte) {
connectingCL(ctx, cl, ch)
}(context.Background(), cl, ch)
}(ctx, cl, ch)
}
}

View File

@ -30,7 +30,7 @@ func (p *Processes) StartDataProcessing() {
updatingRedisPhasor(ctx)
updatingRedisCL104(ctx)
cl104.ConnectCLs()
cl104.ConnectCLs(ctx)
}
func (p *Processes) Cancel(ctx context.Context) {