fix: review comments

This commit is contained in:
Stavros
2025-12-21 17:25:04 +02:00
parent 195b70b4d7
commit 7db81121e1
7 changed files with 15 additions and 8 deletions

View File

@@ -50,7 +50,9 @@ func NewGithubOAuthService(config config.OAuthServiceConfig) *GithubOAuthService
}
func (github *GithubOAuthService) Init() error {
httpClient := &http.Client{}
httpClient := &http.Client{
Timeout: 30 * time.Second,
}
ctx := context.Background()
ctx = context.WithValue(ctx, oauth2.HTTPClient, httpClient)
github.context = ctx