FIXME: use CommentList to improve performance.
(e Engine, comments []*Comment)
| 422 | |
| 423 | // FIXME: use CommentList to improve performance. |
| 424 | func loadCommentsAttributes(e Engine, comments []*Comment) (err error) { |
| 425 | for i := range comments { |
| 426 | if err = comments[i].loadAttributes(e); err != nil { |
| 427 | return errors.Newf("loadAttributes [%d]: %v", comments[i].ID, err) |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | return nil |
| 432 | } |
| 433 | |
| 434 | func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, error) { |
| 435 | comments := make([]*Comment, 0, 10) |
no test coverage detected