diff options
author | Chongyi Zheng <git@zcy.dev> | 2023-08-26 22:24:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-27 10:24:45 +0800 |
commit | 43652746f2929aeb53ec1e575c3691050755a0b5 (patch) | |
tree | 8f2f05ca05fc6ad1b5c557c77a95f17c0f2381bc /routers/api/v1/repo | |
parent | 37b3ba22a1dcf88cf4bfa4a7861703c8a5701f5c (diff) | |
download | gitea-43652746f2929aeb53ec1e575c3691050755a0b5.tar.gz gitea-43652746f2929aeb53ec1e575c3691050755a0b5.zip |
Move `modules/mirror` to `services` (#26737)
To solve the cyclic imports in a better way
Closes #20261
Diffstat (limited to 'routers/api/v1/repo')
-rw-r--r-- | routers/api/v1/repo/mirror.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/api/v1/repo/mirror.go b/routers/api/v1/repo/mirror.go index 9d8497927e..60f1bfe0d3 100644 --- a/routers/api/v1/repo/mirror.go +++ b/routers/api/v1/repo/mirror.go @@ -14,7 +14,6 @@ import ( repo_model "code.gitea.io/gitea/models/repo" "code.gitea.io/gitea/models/unit" "code.gitea.io/gitea/modules/context" - mirror_module "code.gitea.io/gitea/modules/mirror" "code.gitea.io/gitea/modules/setting" api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/util" @@ -70,7 +69,7 @@ func MirrorSync(ctx *context.APIContext) { return } - mirror_module.AddPullMirrorToQueue(repo.ID) + mirror_service.AddPullMirrorToQueue(repo.ID) ctx.Status(http.StatusOK) } |