Skip to content

(*Domain).EtcdClient() is duplicated with (*Domain).GetEtcdClient() #64313

@lance6716

Description

@lance6716

Enhancement

tidb/pkg/domain/domain.go

Lines 1253 to 1255 in 779e298

func (do *Domain) GetEtcdClient() *clientv3.Client {
return do.etcdClient
}

tidb/pkg/domain/domain.go

Lines 244 to 247 in 779e298

// EtcdClient export for test.
func (do *Domain) EtcdClient() *clientv3.Client {
return do.etcdClient
}

no need to keep both of them

Metadata

Metadata

Assignees

Labels

type/enhancementThe issue or PR belongs to an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions