Skip to content

Commit 7e64ff6

Browse files
committed
修复:确保创建监听器时被实例锁锁住
Signed-off-by: roc <roc@imroc.cc>
1 parent bfe2bb1 commit 7e64ff6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/clb/batch-target.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ func startRegisterTargetsProccessor(concurrent int) {
4848
}
4949
return
5050
}
51+
_, err = Wait(context.Background(), region, *res.Response.RequestId, apiName, DefaultWaitInterval)
52+
if err != nil {
53+
for _, task := range tasks {
54+
task.Result <- err
55+
}
56+
return
57+
}
5158
if len(res.Response.FailListenerIdSet) > 0 {
5259
failedMap := make(map[string]bool)
5360
for _, listenerId := range res.Response.FailListenerIdSet {

0 commit comments

Comments
 (0)