remove size limit in toListPosgres to accomodate users with access to many repositories

This commit is contained in:
Marius Grigoriu 2016-08-31 15:20:25 -07:00 committed by Marius Grigoriu
parent 524fba6253
commit be0ee06019

View file

@ -57,10 +57,6 @@ func toList(listof []*model.RepoLite) (string, []interface{}) {
// to a sql IN statement compatible with postgres.
func toListPosgres(listof []*model.RepoLite) (string, []interface{}) {
var size = len(listof)
if size > 999 {
size = 999
listof = listof[:999]
}
var qs = make([]string, size, size)
var in = make([]interface{}, size, size)
for i, repo := range listof {