Use uTLS aware broker channel constructor

This commit is contained in:
Shelikhoo 2022-02-11 10:03:45 +00:00
parent ccfdcab8fe
commit 1573502e93
No known key found for this signature in database
GPG key ID: C4D5E79D22B25316
2 changed files with 6 additions and 5 deletions

View file

@ -131,8 +131,9 @@ func NewSnowflakeClient(config ClientConfig) (*Transport, error) {
}
// Rendezvous with broker using the given parameters.
broker, err := NewBrokerChannel(
config.BrokerURL, config.AmpCacheURL, config.FrontDomain, config.KeepLocalAddresses)
broker, err := NewBrokerChannelWithUTlsSettings(
config.BrokerURL, config.AmpCacheURL, config.FrontDomain,
config.KeepLocalAddresses, config.UTlsClientID, config.UTlsRemoveSNI)
if err != nil {
return nil, err
}