Only initiate Gitea client on use
This commit is contained in:
@@ -13,6 +13,7 @@ const giteaReposPerPage = 20
|
||||
func (r *GiteaRemote) StreamProjects(pi *load.ProgressInfo, opts *remote.RemoteQueryOpts) {
|
||||
defer close(pi.ProgressChan)
|
||||
defer close(pi.ProjectsChan)
|
||||
r.setClient()
|
||||
|
||||
// Get projects. TODO support concurrency
|
||||
giteaListOpts := gitea.ListOptions{Page: 1, PageSize: giteaReposPerPage}
|
||||
|
||||
Reference in New Issue
Block a user