Skip to content

Commit

Permalink
Add endpoint parameter to New method.
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Niedbalski <[email protected]>
  • Loading branch information
niedbalski committed Sep 19, 2023
1 parent 9147955 commit d630a3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ func New(ctx context.Context, logger Logger, optsFns ...ClientOptsFunc) (*Defaul
DisableCompression: true,
},
}
if opts.Endpoint != "" {
options.BaseEndpoint = &opts.Endpoint
}
})

return &DefaultClient{Svc: client, Logger: logger}, nil
Expand Down

0 comments on commit d630a3e

Please sign in to comment.