Skip to content

Commit

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

type Attacker struct {
path Path
path Path
index int
}

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

0 comments on commit 58ca6d2

Please sign in to comment.