Skip to content

Commit cd56456

Browse files
gitmknanonymous
andauthored
fix: modify client (#1950)
Co-authored-by: anonymous <anonymous@mail.org>
1 parent 543ca97 commit cd56456

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tencentcloud/connectivity/client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (me *TencentCloudClient) NewClientProfile(timeout int) *profile.ClientProfi
189189
return cpf
190190
}
191191

192-
// NewClientProfile returns a new ClientProfile
192+
// NewClientIntlProfile returns a new ClientProfile
193193
func (me *TencentCloudClient) NewClientIntlProfile(timeout int) *intlProfile.ClientProfile {
194194
cpf := intlProfile.NewClientProfile()
195195

@@ -767,7 +767,7 @@ func (me *TencentCloudClient) UseDnsPodClient() *dnspod.Client {
767767

768768
// UsePrivateDnsClient return PrivateDns client for service
769769
func (me *TencentCloudClient) UsePrivateDnsClient() *privatedns.Client {
770-
if me.dnsPodConn != nil {
770+
if me.privateDnsConn != nil {
771771
return me.privateDnsConn
772772
}
773773
cpf := me.NewClientProfile(300)
@@ -779,7 +779,7 @@ func (me *TencentCloudClient) UsePrivateDnsClient() *privatedns.Client {
779779

780780
// UseDomainClient return Domain client for service
781781
func (me *TencentCloudClient) UseDomainClient() *domain.Client {
782-
if me.dnsPodConn != nil {
782+
if me.domainConn != nil {
783783
return me.domainConn
784784
}
785785
cpf := me.NewClientProfile(300)
@@ -1111,7 +1111,7 @@ func (me *TencentCloudClient) UseMpsClient() *mps.Client {
11111111
return me.mpsConn
11121112
}
11131113

1114-
// UseTkeClient returns tke client for service
1114+
// UseCwpClient returns tke client for service
11151115
func (me *TencentCloudClient) UseCwpClient() *cwp.Client {
11161116
if me.cwpConn != nil {
11171117
return me.cwpConn

0 commit comments

Comments
 (0)