Skip to content

Commit aa24186

Browse files
committed
make restore repo cancelable
1 parent 13df0cc commit aa24186

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/private/restore_repo.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"io/ioutil"
99

1010
myCtx "code.gitea.io/gitea/modules/context"
11-
"code.gitea.io/gitea/modules/graceful"
1211
"code.gitea.io/gitea/modules/migrations"
1312
jsoniter "github.com/json-iterator/go"
1413
)
@@ -37,7 +36,7 @@ func RestoreRepo(ctx *myCtx.PrivateContext) {
3736
}
3837

3938
if err := migrations.RestoreRepository(
40-
graceful.GetManager().HammerContext(),
39+
ctx.Req.Context(),
4140
params.RepoDir,
4241
params.OwnerName,
4342
params.RepoName,

0 commit comments

Comments
 (0)