diff --git a/services/migrations/gitea_downloader.go b/services/migrations/gitea_downloader.go index 6c2f34f2173..f92f318293d 100644 --- a/services/migrations/gitea_downloader.go +++ b/services/migrations/gitea_downloader.go @@ -113,7 +113,6 @@ func NewGiteaDownloader(ctx context.Context, baseURL, repoPath, username, passwo } return &GiteaDownloader{ - // ctx: ctx, client: giteaClient, baseURL: baseURL, repoOwner: path[0], diff --git a/services/migrations/gogs.go b/services/migrations/gogs.go index 1c785d20322..4209a2c80e7 100644 --- a/services/migrations/gogs.go +++ b/services/migrations/gogs.go @@ -85,8 +85,9 @@ func (g *GogsDownloader) LogString() string { } // NewGogsDownloader creates a gogs Downloader via gogs API -func NewGogsDownloader(_ context.Context, baseURL, userName, password, token, repoOwner, repoName string) *GogsDownloader { +func NewGogsDownloader(ctx context.Context, baseURL, userName, password, token, repoOwner, repoName string) *GogsDownloader { downloader := GogsDownloader{ + ctx: ctx, baseURL: baseURL, userName: userName, password: password,