mirror of
https://github.com/thegeeklab/drone-admin.git
synced 2024-11-21 22:20:38 +00:00
fix spelling in code
This commit is contained in:
parent
209ae081af
commit
65fbb83338
@ -29,20 +29,20 @@ func New(server string, token string) (drone.Client, error) {
|
||||
}
|
||||
|
||||
oauth := new(oauth2.Config)
|
||||
auther := oauth.Client(
|
||||
authenticator := oauth.Client(
|
||||
context.Background(),
|
||||
&oauth2.Token{
|
||||
AccessToken: token,
|
||||
},
|
||||
)
|
||||
|
||||
auther.Timeout, _ = time.ParseDuration("60s")
|
||||
authenticator.Timeout, _ = time.ParseDuration("60s")
|
||||
|
||||
trans, _ := auther.Transport.(*oauth2.Transport)
|
||||
trans, _ := authenticator.Transport.(*oauth2.Transport)
|
||||
trans.Base = &http.Transport{
|
||||
TLSClientConfig: tlsConfig,
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
}
|
||||
|
||||
return drone.NewClient(s.String(), auther), nil
|
||||
return drone.NewClient(s.String(), authenticator), nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user