Skip to content

Commit

Permalink
fix: fixes to config and readme (#107)
Browse files Browse the repository at this point in the history
* fix: set http client

* fix: README Display format incorrect

---------

Co-authored-by: Narimasa Sakurai <[email protected]>
Co-authored-by: Kevin Yang <[email protected]>
  • Loading branch information
3 people authored Jun 11, 2024
1 parent 47a15e1 commit 97c03bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,8 @@ func main() {
// .. Handle error
}
}
```


### API Endpoints

Expand Down
2 changes: 2 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func newClientConfiguration(cfg *fgaSdk.Configuration) ClientConfiguration {
DefaultHeaders: cfg.DefaultHeaders,
UserAgent: cfg.UserAgent,
Debug: cfg.Debug,
HTTPClient: cfg.HTTPClient,
RetryParams: cfg.RetryParams,
}
}
Expand All @@ -80,6 +81,7 @@ func NewSdkClient(cfg *ClientConfiguration) (*OpenFgaClient, error) {
DefaultHeaders: cfg.DefaultHeaders,
UserAgent: cfg.UserAgent,
Debug: cfg.Debug,
HTTPClient: cfg.HTTPClient,
RetryParams: cfg.RetryParams,
})

Expand Down
1 change: 1 addition & 0 deletions configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,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 97c03bc

Please sign in to comment.