Skip to content

Commit

Permalink
update for fix TAT
Browse files Browse the repository at this point in the history
  • Loading branch information
dxyinme committed Dec 30, 2023
1 parent 8f88006 commit 96db12a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions driver/etcddriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,13 @@ label:
e.logger.Infof("driver stopped")
return
}
case resp, ok := <-leaseCh:
case _, ok := <-leaseCh:
{
// if lease failed, goto top of
// this function to keepalive
if !ok {
goto label
}
e.logger.Infof("leaseID=%0x,respLeaseID=%0x", e.leaseID, resp.ID)
}
case <-time.After(etcdBusinessTimeout):
{
Expand Down
2 changes: 1 addition & 1 deletion driver/etcddriver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func testFuncNewEtcdDriver(cfg clientv3.Config) driver.DriverV2 {

func TestEtcdDriver_GetNodes(t *testing.T) {
etcdsvr := integration.NewLazyCluster()
N := 5
N := 10
drvs := make([]driver.DriverV2, N)
for i := 0; i < N; i++ {
drv := testFuncNewEtcdDriver(clientv3.Config{
Expand Down

0 comments on commit 96db12a

Please sign in to comment.