Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Dec 5, 2023
1 parent 06b5f19 commit 0a4e14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ func NewClient(subscriptionKey string, region Region, opts ...Option) Client {
c := &baseClient{
subscriptionKey: subscriptionKey,
region: region,
authURL: fmt.Sprintf(tokenRefreshAPI, region.String()),
ttsURL: fmt.Sprintf(textToSpeechAPI, region.String()),
tokenSaver: &memorySaver{},
client: http.DefaultClient,
autoRefreshFn: newAutoRefresh(),
}
c.authURL = fmt.Sprintf(tokenRefreshAPI, c.region.String())
c.ttsURL = fmt.Sprintf(textToSpeechAPI, c.region.String())
for _, opt := range opts {
opt(c)
}
Expand Down

0 comments on commit 0a4e14c

Please sign in to comment.