Skip to content

Commit

Permalink
fix(go-sdk): set http client (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored May 31, 2024
2 parents 4838603 + 79da3bc commit 2b99283
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/clients/go/template/client/client.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func newClientConfiguration(cfg *fgaSdk.Configuration) ClientConfiguration {
DefaultHeaders: cfg.DefaultHeaders,
UserAgent: cfg.UserAgent,
Debug: cfg.Debug,
HTTPClient: cfg.HTTPClient,
RetryParams: cfg.RetryParams,
}
}
Expand All @@ -69,6 +70,7 @@ func NewSdkClient(cfg *ClientConfiguration) (*{{appShortName}}Client, error) {
DefaultHeaders: cfg.DefaultHeaders,
UserAgent: cfg.UserAgent,
Debug: cfg.Debug,
HTTPClient: cfg.HTTPClient,
RetryParams: cfg.RetryParams,
})

Expand Down
1 change: 1 addition & 0 deletions config/clients/go/template/configuration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func NewConfiguration(config Configuration) (*Configuration, error) {
DefaultHeaders: config.DefaultHeaders,
UserAgent: config.UserAgent,
Debug: config.Debug,
HTTPClient: config.HTTPClient,
RetryParams: config.RetryParams,
}

Expand Down

0 comments on commit 2b99283

Please sign in to comment.