diff --git a/alert/dispatch/notify_target.go b/alert/dispatch/notify_target.go index 74c40b119..573f0ae0d 100644 --- a/alert/dispatch/notify_target.go +++ b/alert/dispatch/notify_target.go @@ -125,7 +125,7 @@ func (s *NotifyTarget) ToWebhookMap() map[string]*models.Webhook { } func (s *NotifyTarget) ToUidList() []int64 { - uids := make([]int64, len(s.userMap)) + uids := make([]int64, 0, len(s.userMap)) for uid, _ := range s.userMap { uids = append(uids, uid) }