Skip to content

Commit

Permalink
fix : attack path
Browse files Browse the repository at this point in the history
  • Loading branch information
seipan committed Aug 11, 2023
1 parent 7622493 commit 271a9e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vegeta.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type Attacker struct {

func (atk *Attacker) Attack() {
target := vegeta.Target{
Method: "GET",
URL: "https://example.com/api/endpoint",
Method: atk.path.method[0].method,
URL: atk.path.path,
}
targeter := vegeta.NewStaticTargeter(target)
rate := vegeta.Rate{Freq: 100, Per: time.Second}
Expand Down

0 comments on commit 271a9e2

Please sign in to comment.