diff --git a/server/gitea/client.go b/server/gitea/client.go index 59a9392..01a0728 100644 --- a/server/gitea/client.go +++ b/server/gitea/client.go @@ -28,7 +28,7 @@ const ( branchTimestampCacheKeyPrefix = "branchTime" defaultBranchCacheKeyPrefix = "defaultBranch" rawContentCacheKeyPrefix = "rawContent" - ownerExistance = "ownerExist" + ownerExistanceKeyPrefix = "ownerExist" // pages server PagesCacheIndicatorHeader = "X-Pages-Cache" @@ -265,7 +265,7 @@ func (client *Client) GiteaGetRepoDefaultBranch(repoOwner, repoName string) (str } func (client *Client) GiteaCheckIfOwnerExists(owner string) (bool, error) { - cacheKey := fmt.Sprintf("%s/%s", ownerExistance, owner) + cacheKey := fmt.Sprintf("%s/%s", ownerExistanceKeyPrefix, owner) if exist, ok := client.responseCache.Get(cacheKey); ok && exist != nil { return exist.(bool), nil