Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: yibin87 <[email protected]>
  • Loading branch information
yibin87 committed Jan 13, 2025
1 parent a152c49 commit d33b2e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/executor/internal/mpp/local_mpp_coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func (c *localMppCoordinator) fillSameZoneFlagForExchange(exec *tipb.Executor, t
children = append(children, exec.Limit.Child)
case tipb.ExecType_TypeExchangeSender:
children = append(children, exec.ExchangeSender.Child)
sameZoneFlags := make([]bool, len(exec.ExchangeSender.EncodedTaskMeta))
sameZoneFlags := make([]bool, 0, len(exec.ExchangeSender.EncodedTaskMeta))
if len(taskZoneLabel) == 0 {
for i := 0; i < len(exec.ExchangeSender.EncodedTaskMeta); i++ {
sameZoneFlags = append(sameZoneFlags, true)
Expand All @@ -400,7 +400,7 @@ func (c *localMppCoordinator) fillSameZoneFlagForExchange(exec *tipb.Executor, t
}
exec.ExchangeSender.SameZoneFlag = sameZoneFlags
case tipb.ExecType_TypeExchangeReceiver:
sameZoneFlags := make([]bool, len(exec.ExchangeReceiver.EncodedTaskMeta))
sameZoneFlags := make([]bool, 0, len(exec.ExchangeReceiver.EncodedTaskMeta))
if len(taskZoneLabel) == 0 {
for i := 0; i < len(exec.ExchangeReceiver.EncodedTaskMeta); i++ {
sameZoneFlags = append(sameZoneFlags, true)
Expand Down

0 comments on commit d33b2e1

Please sign in to comment.