Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Siwiec <[email protected]>
  • Loading branch information
rizzza committed Jul 21, 2023
1 parent 9c8589c commit 83de77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ func process(ctx context.Context, logger *zap.SugaredLogger) error {

// init lbapi client and ipam client
if config.AppConfig.OIDC.Client.Issuer != "" {
oidcTs, err := oauth2x.NewClientCredentialsTokenSrc(ctx, config.AppConfig.OIDC.Client)
oidcTS, err := oauth2x.NewClientCredentialsTokenSrc(ctx, config.AppConfig.OIDC.Client)
if err != nil {
logger.Fatalw("failed to create oauth2 token source", "error", err)
}

oauthHTTPClient := oauth2x.NewClient(ctx, oidcTs)
oauthHTTPClient := oauth2x.NewClient(ctx, oidcTS)
server.APIClient = lbapi.NewClient((viper.GetString("api-endpoint")),
lbapi.WithHTTPClient(oauthHTTPClient),
)
Expand Down

0 comments on commit 83de77f

Please sign in to comment.