()
| 14 | var session = core.GetSession() |
| 15 | |
| 16 | func ProcessRepositories() { |
| 17 | threadNum := *session.Options.Threads |
| 18 | |
| 19 | for i := 0; i < threadNum; i++ { |
| 20 | go func(tid int) { |
| 21 | |
| 22 | for { |
| 23 | repositoryId := <-session.Repositories |
| 24 | repo := core.GetRepository(session, repositoryId) |
| 25 | |
| 26 | if repo.GetPermissions()["pull"] && |
| 27 | uint(repo.GetStargazersCount()) >= *session.Options.MinimumStars && |
| 28 | uint(repo.GetSize()) < *session.Options.MaximumRepositorySize { |
| 29 | |
| 30 | processRepositoryOrGist(repo.GetCloneURL()) |
| 31 | } |
| 32 | } |
| 33 | }(i) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func ProcessGists() { |
| 38 | threadNum := *session.Options.Threads |
no test coverage detected