Skip to content

Commit

Permalink
remove timeout config
Browse files Browse the repository at this point in the history
  • Loading branch information
George McIntosh committed Sep 5, 2017
1 parent 1892c60 commit 4ce25dc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions github/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ package github
import (
"context"
"crypto/tls"
"net/http"
"net/url"
"time"

"github.com/google/go-github/github"
"github.com/hashicorp/terraform/helper/logging"
"golang.org/x/oauth2"
"net/http"
"net/url"
)

type Config struct {
Expand Down Expand Up @@ -40,7 +38,7 @@ func (c *Config) Client() (interface{}, error) {
config := &tls.Config{InsecureSkipVerify: true}
transport := &http.Transport{TLSClientConfig: config}

httpClient := &http.Client{Timeout: 2 * time.Second}
httpClient := &http.Client{}
httpClient.Transport = transport
ctx = context.WithValue(ctx, oauth2.HTTPClient, httpClient)

Expand Down

0 comments on commit 4ce25dc

Please sign in to comment.