Skip to content

Commit

Permalink
fix: fix slice init length (#2164)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuishuang authored Nov 12, 2024
1 parent 4908241 commit 3db150e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/task/queue_stuck_event_deliveries.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func QueueStuckEventDeliveries(ctx context.Context, edRepo datastore.EventDelive
}

ids := func() []string {
arr := make([]string, len(evs))
arr := make([]string, 0, len(evs))
for i := 0; i < len(evs); i++ {
arr = append(arr, evs[i].UID)
}
Expand Down

0 comments on commit 3db150e

Please sign in to comment.