diff --git a/vegeta.go b/vegeta.go index 283502c..66b6eaf 100644 --- a/vegeta.go +++ b/vegeta.go @@ -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)