Procházet zdrojové kódy

Merge pull request #6079 from gyuho/cleanup-functional-tester

etcd-tester: remove unnecessary arg from stresser
Gyu-Ho Lee před 9 roky
rodič
revize
4db07dbc93
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      tools/functional-tester/etcd-tester/stresser.go

+ 2 - 2
tools/functional-tester/etcd-tester/stresser.go

@@ -180,14 +180,14 @@ func (s *stresser) Stress() error {
 	s.stressTable = createStressTable(stressEntries)
 	s.stressTable = createStressTable(stressEntries)
 
 
 	for i := 0; i < s.N; i++ {
 	for i := 0; i < s.N; i++ {
-		go s.run(ctx, kvc)
+		go s.run(ctx)
 	}
 	}
 
 
 	plog.Printf("stresser %q is started", s.Endpoint)
 	plog.Printf("stresser %q is started", s.Endpoint)
 	return nil
 	return nil
 }
 }
 
 
-func (s *stresser) run(ctx context.Context, kvc pb.KVClient) {
+func (s *stresser) run(ctx context.Context) {
 	defer s.wg.Done()
 	defer s.wg.Done()
 
 
 	for {
 	for {