style: format TLS client options
This commit is contained in:
parent
d1f6762114
commit
801f951ccb
1 changed files with 4 additions and 1 deletions
|
|
@ -10,7 +10,10 @@ import (
|
|||
)
|
||||
|
||||
func NewClient(options ...tls_client.HttpClientOption) tls_client.HttpClient {
|
||||
options = slices.Concat([]tls_client.HttpClientOption{tls_client.WithClientProfile(clientProfile), tls_client.WithRandomTLSExtensionOrder()}, options)
|
||||
options = slices.Concat([]tls_client.HttpClientOption{
|
||||
tls_client.WithClientProfile(clientProfile),
|
||||
tls_client.WithRandomTLSExtensionOrder(),
|
||||
}, options)
|
||||
client, err := tls_client.NewHttpClient(tls_client.NewNoopLogger(), options...)
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("failed to create new tls http client: %w", err))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue