fix: add context back to gogs

pull/33399/head
TheFox0x7 5 days ago
parent 7ef7d60589
commit 3ec351f1ca
No known key found for this signature in database
GPG Key ID: 6CA33903484AF7C2
  1. 1
      services/migrations/gitea_downloader.go
  2. 3
      services/migrations/gogs.go

@ -113,7 +113,6 @@ func NewGiteaDownloader(ctx context.Context, baseURL, repoPath, username, passwo
} }
return &GiteaDownloader{ return &GiteaDownloader{
// ctx: ctx,
client: giteaClient, client: giteaClient,
baseURL: baseURL, baseURL: baseURL,
repoOwner: path[0], repoOwner: path[0],

@ -85,8 +85,9 @@ func (g *GogsDownloader) LogString() string {
} }
// NewGogsDownloader creates a gogs Downloader via gogs API // 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{ downloader := GogsDownloader{
ctx: ctx,
baseURL: baseURL, baseURL: baseURL,
userName: userName, userName: userName,
password: password, password: password,

Loading…
Cancel
Save