Use context in requests

This commit is contained in:
2024-01-16 21:32:46 -05:00
parent 868183f012
commit 7e2ff1198b
2 changed files with 29 additions and 12 deletions

View File

@@ -17,14 +17,6 @@ const (
projectsPerGoroutine = 200
)
var DefaultListOpts = &gitlab.ListProjectsOptions{
ListOptions: gitlab.ListOptions{
PerPage: projectsPerPage,
Page: 1,
},
Archived: gitlab.Ptr[bool](false),
}
func (r *GitlabRemote) StreamProjects(pi *load.ProgressInfo, opts *remote.RemoteQueryOpts) {
defer close(pi.ProgressChan)
defer close(pi.ProjectsChan)