Skip to content

Commit

Permalink
rename : index
Browse files Browse the repository at this point in the history
  • Loading branch information
seipan committed Aug 12, 2023
1 parent 58ca6d2 commit deb2ceb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vegeta.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
)

type Attacker struct {
path Path
index int
path Path
methodIndex int
}

func (atk *Attacker) Attack() {
target := vegeta.Target{
Method: atk.path.method[atk.index].method,
Method: atk.path.method[atk.methodIndex].method,
URL: atk.path.path,
}
targeter := vegeta.NewStaticTargeter(target)
Expand Down

0 comments on commit deb2ceb

Please sign in to comment.