Skip to content

Commit

Permalink
longer timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
brondum committed Dec 7, 2020
1 parent e74a0cb commit 32e43bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gh/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/google/go-github/v32/github"
"github.com/gregjones/httpcache"
"github.com/palantir/go-githubapp/githubapp"
)

var version string
conf "github.com/BESTSELLER/dependabot-circleci/config"
)

// GetOrganizationClients returns a github client
func GetOrganizationClients(config githubapp.Config) ([]*github.Client, error) {
Expand Down Expand Up @@ -55,8 +55,8 @@ func GetOrganizationClients(config githubapp.Config) ([]*github.Client, error) {
func createGHClient(config githubapp.Config) (githubapp.ClientCreator, error) {
cc, err := githubapp.NewDefaultCachingClientCreator(
config,
githubapp.WithClientUserAgent(fmt.Sprintf("dependabot-circleci/%s", version)),
githubapp.WithClientTimeout(3*time.Second),
githubapp.WithClientUserAgent(fmt.Sprintf("dependabot-circleci/%s", conf.EnvVars.Version)),
githubapp.WithClientTimeout(10*time.Second),
githubapp.WithClientCaching(false, func() httpcache.Cache { return httpcache.NewMemoryCache() }),
)
if err != nil {
Expand Down

0 comments on commit 32e43bb

Please sign in to comment.