mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-02 15:09:33 -05:00
fix: add context back to gogs
This commit is contained in:
parent
7ef7d60589
commit
3ec351f1ca
@ -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…
Reference in New Issue
Block a user