Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Jan 6, 2025
1 parent c4fed1d commit 2bc3e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pd-simulator/simulator/drive.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (d *Driver) allocID() error {
func (d *Driver) updateNodesClient() error {
urls := strings.Split(d.pdAddr, ",")
ctx, cancel := context.WithCancel(context.Background())
SD = sd.NewDefaultPDServiceDiscovery(ctx, cancel, urls, nil)
SD = sd.NewDefaultServiceDiscovery(ctx, cancel, urls, nil)
if err := SD.Init(); err != nil {
return err
}
Expand Down

0 comments on commit 2bc3e34

Please sign in to comment.