@@ -102,7 +102,7 @@ func GetContributorStats(ctx context.Context, cache cache.StringCache, repo *rep
102102 }
103103
104104 // run generation async
105- res , err := generateContributorStats (ctx , cache , cacheKey , repo , revision )
105+ res , err := generateContributorStats (ctx , repo , revision )
106106 if err != nil {
107107 return nil , err
108108 }
@@ -112,7 +112,7 @@ func GetContributorStats(ctx context.Context, cache cache.StringCache, repo *rep
112112}
113113
114114// 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 ) {
116116 stdoutReader , stdoutWriter , err := os .Pipe ()
117117 if err != nil {
118118 return nil , err
@@ -202,7 +202,7 @@ func getExtendedCommitStats(ctx context.Context, repoPath string, baseCommit *gi
202202 return extendedCommitStats , nil
203203}
204204
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 ) {
206206 gitRepo , closer , err := gitrepo .RepositoryFromContextOrOpen (ctx , repo )
207207 if err != nil {
208208 return nil , err
@@ -216,7 +216,7 @@ func generateContributorStats(ctx context.Context, cache cache.StringCache, cach
216216 if err != nil {
217217 return nil , err
218218 }
219- extendedCommitStats , err := getExtendedCommitStats (ctx , repo .RepoPath (), baseCommit , revision )
219+ extendedCommitStats , err := getExtendedCommitStats (ctx , repo .RepoPath (), baseCommit )
220220 if err != nil {
221221 return nil , err
222222 }
0 commit comments