From 3ec351f1ca3a441ab125db05f8eb7a22d3f1e697 Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Sat, 25 Jan 2025 22:29:18 +0100 Subject: [PATCH] fix: add context back to gogs --- services/migrations/gitea_downloader.go | 1 - services/migrations/gogs.go | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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,