Skip to content

Commit 3ec351f

Browse files
committed
fix: add context back to gogs
1 parent 7ef7d60 commit 3ec351f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/migrations/gitea_downloader.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ func NewGiteaDownloader(ctx context.Context, baseURL, repoPath, username, passwo
113113
}
114114

115115
return &GiteaDownloader{
116-
// ctx: ctx,
117116
client: giteaClient,
118117
baseURL: baseURL,
119118
repoOwner: path[0],

services/migrations/gogs.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ func (g *GogsDownloader) LogString() string {
8585
}
8686

8787
// NewGogsDownloader creates a gogs Downloader via gogs API
88-
func NewGogsDownloader(_ context.Context, baseURL, userName, password, token, repoOwner, repoName string) *GogsDownloader {
88+
func NewGogsDownloader(ctx context.Context, baseURL, userName, password, token, repoOwner, repoName string) *GogsDownloader {
8989
downloader := GogsDownloader{
90+
ctx: ctx,
9091
baseURL: baseURL,
9192
userName: userName,
9293
password: password,

0 commit comments

Comments
 (0)