@@ -102,7 +102,7 @@ func GetContributorStats(ctx context.Context, cache cache.StringCache, repo *rep
102
102
}
103
103
104
104
// run generation async
105
- res , err := generateContributorStats (ctx , cache , cacheKey , repo , revision )
105
+ res , err := generateContributorStats (ctx , repo , revision )
106
106
if err != nil {
107
107
return nil , err
108
108
}
@@ -112,7 +112,7 @@ func GetContributorStats(ctx context.Context, cache cache.StringCache, repo *rep
112
112
}
113
113
114
114
// getExtendedCommitStats return the list of *ExtendedCommitStats for the given revision
115
- func getExtendedCommitStats (ctx context.Context , repoPath string , baseCommit * git.Commit , revision string /*, limit int */ ) ([]* ExtendedCommitStats , error ) {
115
+ func getExtendedCommitStats (ctx context.Context , repoPath string , baseCommit * git.Commit ) ([]* ExtendedCommitStats , error ) {
116
116
stdoutReader , stdoutWriter , err := os .Pipe ()
117
117
if err != nil {
118
118
return nil , err
@@ -202,7 +202,7 @@ func getExtendedCommitStats(ctx context.Context, repoPath string, baseCommit *gi
202
202
return extendedCommitStats , nil
203
203
}
204
204
205
- func generateContributorStats (ctx context.Context , cache cache. StringCache , cacheKey string , repo * repo_model.Repository , revision string ) (map [string ]* ContributorData , error ) {
205
+ func generateContributorStats (ctx context.Context , repo * repo_model.Repository , revision string ) (map [string ]* ContributorData , error ) {
206
206
gitRepo , closer , err := gitrepo .RepositoryFromContextOrOpen (ctx , repo )
207
207
if err != nil {
208
208
return nil , err
@@ -216,7 +216,7 @@ func generateContributorStats(ctx context.Context, cache cache.StringCache, cach
216
216
if err != nil {
217
217
return nil , err
218
218
}
219
- extendedCommitStats , err := getExtendedCommitStats (ctx , repo .RepoPath (), baseCommit , revision )
219
+ extendedCommitStats , err := getExtendedCommitStats (ctx , repo .RepoPath (), baseCommit )
220
220
if err != nil {
221
221
return nil , err
222
222
}
0 commit comments