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

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

@ -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,

Loading…
Cancel
Save