Skip to content

Commit

Permalink
Init using values from provider, not context
Browse files Browse the repository at this point in the history
  • Loading branch information
John-K committed Mar 14, 2024
1 parent 22e6194 commit 931574a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
func (p *Provider) init(ctx context.Context) {
p.once.Do(func() {
p.client = *dme.GetClient(
ctx.Value("APIKey").(string),
ctx.Value("SecretKey").(string),
ctx.Value("APIEndpoint").(dme.BaseURL),
p.APIKey,
p.SecretKey,
p.APIEndpoint,
)
})
}
Expand Down

0 comments on commit 931574a

Please sign in to comment.