This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit d8c77074a1282305389caa34f989254a04028c0c
Author: phzbbbbbbbb <[email protected]>
AuthorDate: Wed Jul 13 22:49:02 2022 +0800

    fix: Response needn't to be renamed
---
 plugins/gitee/tasks/api_client.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/gitee/tasks/api_client.go 
b/plugins/gitee/tasks/api_client.go
index f26eabf7..f64d59cd 100644
--- a/plugins/gitee/tasks/api_client.go
+++ b/plugins/gitee/tasks/api_client.go
@@ -59,7 +59,7 @@ func NewGiteeApiClient(taskCtx core.TaskContext, connection 
*models.GiteeConnect
                        }
                        rateLimit, err := strconv.Atoi(rateLimitHeader)
                        if err != nil {
-                               return 0, 0, fmt.Errorf("failed to parse 
RateLimitPerHour-Limit header: %w", err)
+                               return 0, 0, fmt.Errorf("failed to parse 
RateLimit-Limit header: %w", err)
                        }
                        // seems like gitlab rate limit is on minute basis
                        return rateLimit, 1 * time.Minute, nil

Reply via email to